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

On 2008.05.17 21:54:53 +0200, Misha Aizatulin
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
participants (2)
-
Gwern Branwen
-
Misha Aizatulin