| The main point about the error message is that it says that 'main' is
| not defined, while it is typechecking 'main' - but I thought it only
| typechecks things which are defined? So that makes me think that the
| type is somehow wrong, it is a red herring. It would be better not to
| say anything about types if they are irrelevant.

Ah I see.  So in concrete terms, you are suggesting removing the second line of 
the message, yes?

| Also it might be
| useful if GHC could say where it is getting this information that
| 'main' is not defined - clearly not from the source - maybe from a
| previous .o file? .hi file? Could it happen if I've recompiled a
| package that my program depends on?

Actually, yes, from the source.  That is why I cannot account for your getting 
the message. If it happens again, please capture the files!

Simon
sgow-haskell-bugs
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to