
4 Jan
2011
4 Jan
'11
9:32 a.m.
I am looking at GHC API examples page: http://www.haskell.org/haskellwiki/GHC/As_a_library 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?
5252
Age (days ago)
5252
Last active (days ago)
0 comments
1 participants
participants (1)
-
Serguey Zefirov