
Hi,
On 5/4/06, Lemmih
You can also use the GHC library: Prelude> :m GHC Prelude GHC> GHC.init (Just "/home/david/coding/haskell/ghc/usr/lib/ghc-6.5") Prelude GHC> session <- newSession Interactive Prelude GHC> setSessionDynFlags session =<< initPackages =<< getSessionDynFlags session Prelude GHC> setContext session [] [mkModule "Prelude"] Prelude GHC> runStmt session "let add1 x = x + 1" Prelude GHC> runStmt session "add1 2" 3 Prelude GHC> :q Leaving GHCi.
Please tell what options do you use to build ghc in to get package ghc working? I get the following trying to load it: $ ./ghc-inplace --interactive -package ghc ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.5, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \____/\/ /_/\____/|_| Type :? for help. Loading package base-1.0 ... linking ... done. Loading package template-haskell-1.0 ... linking ... done. Loading package readline-1.0 ... linking ... done. Loading package unix-1.0 ... linking ... done. Loading package Cabal-1.1.4 ... linking ... done. Loading package haskell98-1.0 ... linking ... done. Loading package ghc-6.5 ... ghc-6.5: can't load .so/.DLL for: HSghc (libHSghc.so: cannot open shared object file: No such file or directory) Regards, V.Rudenko -- λ is the ultimate