[Haskell-cafe] how can I call GHC.init and GHC.initPackages?

Vadim vadim at vkonovalov.ru
Sat Jul 21 11:10:10 EDT 2007

Hi all,

The following lines of code:

import GHC

main :: [PackageIdentifier] -> IO ()
main pkgs
    = GHC.defaultErrorHandler defaultDynFlags $
      do GHC.init (Just GHC_LIBDIR)
         interactive pkgs

seemingly worked in GHC 6.6 but they do not work in 6.6.1 anymore with
error message:

[1 of 1] Compiling Hide.Hide        ( src/Hide/Hide.hs,
dist/build/Hide/Hide.o )

src/Hide/Hide.hs:34:9: Not in scope: `GHC.init'

src/Hide/Hide.hs:44:18: Not in scope: `GHC.initPackages'
setup build failed for packages/baseApp

Thanks for any help on the subject.

More information about the Haskell-Cafe mailing list