[Haskell-cafe] GHC.Paths (libDir)

Serguey Zefirov sergueyz at gmail.com
Tue Jan 4 15:32:39 CET 2011

I am looking at GHC API examples page:

One of examples use "import GHC.Paths ( libDir)" and mentions that it
needs "-package ghc-paths" option.

I tried the second example with latest Haskell Platform (Windows). I
commented out libDir = "/usr..." as it is not applicable to my case
and inserted GHC.Paths import. So I run it like "ghci -package ghc
-package ghc-paths A.hs" and get an error that "<command line>: cannot
satisfy -package ghc-paths".

When I do not use -package ghc-paths, it fails to load a module "GHC.Paths".

What should I do to obtain libDir?

More information about the Haskell-Cafe mailing list