Misha Aizatulin | 17 May 21:54

Calling haddock in a portable way

hello,

   the new version of haddock (2.0.0) needs a new option -B that tells 
it  the GHC lib directory. How do I find out the correct value for this 
option in a makefile, so that the makefile stays portable?

Cheers,
   Misha
Gwern Branwen | 17 May 23:00

Re: Calling haddock in a portable way

On 2008.05.17 21:54:53 +0200, Misha Aizatulin <avatar <at> hot.ee> scribbled 0.2K characters:
> hello,
>
>   the new version of haddock (2.0.0) needs a new option -B that tells it
> the GHC lib directory. How do I find out the correct value for this option
> in a makefile, so that the makefile stays portable?
>
> Cheers,
>   Misha

Maybe you could do something like call out to a shell and ask it to run 'ghc --print-libdir'? That for me
prints to stdout a string like '/usr/lib64/ghc-6.8.2'.

--
gwern
Rivera Peering Intiso SAMF facsimile Submarine redheads AHPCRC DJC Sears
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Misha Aizatulin | 17 May 23:52

Re: Calling haddock in a portable way


 >Maybe you could do something like call out to a shell and ask it to run
 >'ghc --print-libdir'? That for me prints to stdout a string like
 >'/usr/lib64/ghc-6.8.2'.

   Yes, this looks like a solution. Thanks a lot!

Gmane