Commit d6ceeaac authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Change wording of "main is not defined in Main" message (Trac #7816)

parent 202f60a6
......@@ -1102,9 +1102,9 @@ check_main dflags tcg_env
ppMainFn :: RdrName -> SDoc
ppMainFn main_fn
| main_fn == main_RDR_Unqual
= ptext (sLit "function") <+> quotes (ppr main_fn)
= ptext (sLit "IO action") <+> quotes (ppr main_fn)
| otherwise
= ptext (sLit "main function") <+> quotes (ppr main_fn)
= ptext (sLit "main IO action") <+> 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment