Q: is the information that --print-libdir returns available programmatically
to Haskell code?
$ ghc --print-libdir
C:\ghc\ghc-6.11.20090118
$ ghc -e GHC.Paths.libdir
"C:\\ghc\\ghc-6.11.20090118"
$ ghc -e ':browse GHC.Paths'
docdir :: FilePath
ghc :: FilePath
ghc_pkg :: FilePath
libdir :: FilePath
$ ghc-pkg find-module GHC.Paths
c:/ghc/ghc-6.11.20090118\package.conf:
ghc-paths-0.1.0.5
Claus
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users