Dumb error message when trying to runghc a module with no 'main' function
$ runghc Log.hs
Log.hs:1:33:
Not in scope:
main' Perhaps you meant
min' (imported from Prelude)
It really should say something like:
No
main
function found. Can't run a module with no `main'.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |