hsc2hs and HsFFI.h

Claus Reinke claus.reinke at talk21.com
Tue Feb 10 16:52:13 EST 2009


> 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



More information about the Glasgow-haskell-users mailing list