Commit 8edd38dc authored by simonpj's avatar simonpj
Browse files

[project @ 2003-01-23 14:50:53 by simonpj]

Improve error message again
parent 7102e891
......@@ -1990,7 +1990,8 @@ mkMonomorphismMsg tidy_env insts
-- f x = show (read "foo")
-- whre monomorphism doesn't play any role
mk_msg docs = vcat [ptext SLIT("Possible cause: the monomorphism restriction applied to the following:"),
nest 2 (vcat docs)]
nest 2 (vcat docs),
ptext SLIT("Probable fix: give these definition(s) an explicit type signature")]
warnDefault dicts default_ty
= doptM Opt_WarnTypeDefaults `thenM` \ warn_flag ->
......
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