C.M.Brown wrote:
Hello,
I am trying to use the API to interpret a Main module and get some type
information from it. However, everytime I try to load a Main.hs module
using the API I get the following error message:
/usr/local/packages/ghc-6.8.2/lib/ghc-6.8.2/libHSrts.a(Main.o): In
function
Simon,
The GHC API is behaving just like --make: it links the program if you
have a Main module. To ask it not to link, you want to do the same as
'--make -c', which in the GHC API means setting the ghcLink field of
DynFlags to NoLink.
Thanks, this has solved the problem I was having. I