Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d6ceeaac
Commit
d6ceeaac
authored
Apr 12, 2013
by
Simon Peyton Jones
Browse files
Change wording of "main is not defined in Main" message (Trac
#7816
)
parent
202f60a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcRnDriver.lhs
View file @
d6ceeaac
...
...
@@ -1102,9 +1102,9 @@ check_main dflags tcg_env
ppMainFn :: RdrName -> SDoc
ppMainFn main_fn
| main_fn == main_RDR_Unqual
= ptext (sLit "
fun
ction") <+> quotes (ppr main_fn)
= ptext (sLit "
IO a
ction") <+> quotes (ppr main_fn)
| otherwise
= ptext (sLit "main
fun
ction") <+> quotes (ppr main_fn)
= ptext (sLit "main
IO a
ction") <+> quotes (ppr main_fn)
-- | Get the unqualified name of the function to use as the \"main\" for the main module.
-- Either returns the default name or the one configured on the command line with -main-is
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment