Error Interpreting Main with API
simonpj at microsoft.com
Tue Apr 22 03:03:57 EDT 2008
| > 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 wonder whether it
| would be a good idea to amend the Wiki page to relect this? I think it is
| reasonable to assume that other users are going to want to use the API
| against Main modules and it's possibly not too clear at the moment how to
| do this.
Yes I do, please! Would you feel up to doing so? I'm sure Simon'd check your text for veracity!
More information about the Glasgow-haskell-users