[Haskell-cafe] Calling haddock in a portable way

Gwern Branwen gwern0 at gmail.com
Sat May 17 17:00:27 EDT 2008

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'.

Rivera Peering Intiso SAMF facsimile Submarine redheads AHPCRC DJC Sears
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080517/64ae173a/attachment.bin

More information about the Haskell-Cafe mailing list