"main function" is not a function
A module without main gives an error:
A.hs:1:1: The function ‛main’ is not defined in module ‛Main’
However, main in Haskell is not a function. This is often a cause of misunderstandings, for example see IRC discussions or Conal Elliott's "Everything is a function in Haskell". I suggest changing this to:
A.hs:1.1: The IO action ‛main’ is not defined in module ‛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 |