Improve error reporting for 'deriving'
[ghc-hetmet.git] / compiler / typecheck / TcDeriv.lhs
index 5053a06..419ec94 100644 (file)
@@ -1314,9 +1314,7 @@ standaloneCtxt ty = hang (ptext (sLit "In the stand-alone deriving instance for"
 
 derivInstCtxt :: Class -> [Type] -> Message
 derivInstCtxt clas inst_tys
-  = vcat [ptext (sLit "Alternative fix: use a standalone 'deriving instance' declaration"),
-          nest 2 (ptext (sLit "instead, so you can specify the instance context yourself")),
-         ptext (sLit "When deriving the instance for") <+> parens (pprClassPred clas inst_tys)]
+  = ptext (sLit "When deriving the instance for") <+> parens (pprClassPred clas inst_tys)
 
 badDerivedPred :: PredType -> Message
 badDerivedPred pred