
#7816: "main function" is not a function ----------------------------------------------+----------------------------- Reporter: monoidal | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Blockedby: Blocking: | Related: ----------------------------------------------+----------------------------- 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 [http://ircbrowse.net/browse/haskell?q=main+not+function IRC discussions] or [http://conal.net/blog/posts/everything-is-a-function-in-haskell 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’ }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7816 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler