
10 Feb
2009
10 Feb
'09
4:52 p.m.
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