[project @ 2003-01-23 14:50:53 by simonpj]
authorsimonpj <unknown>
Thu, 23 Jan 2003 14:50:53 +0000 (14:50 +0000)
committersimonpj <unknown>
Thu, 23 Jan 2003 14:50:53 +0000 (14:50 +0000)
Improve error message again

ghc/compiler/typecheck/TcSimplify.lhs

index a888621..90fcb9c 100644 (file)
@@ -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 ->