From: simonpj Date: Thu, 23 Jan 2003 14:50:53 +0000 (+0000) Subject: [project @ 2003-01-23 14:50:53 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1246 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8edd38dc3555b851ef2a724e69cf997b35bb16c1;p=ghc-hetmet.git [project @ 2003-01-23 14:50:53 by simonpj] Improve error message again --- diff --git a/ghc/compiler/typecheck/TcSimplify.lhs b/ghc/compiler/typecheck/TcSimplify.lhs index a888621..90fcb9c 100644 --- a/ghc/compiler/typecheck/TcSimplify.lhs +++ b/ghc/compiler/typecheck/TcSimplify.lhs @@ -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 ->