Suggest -XRelaxedPolyRec rather than -fglasgow-exts in an error message
authorIan Lynagh <igloo@earth.li>
Mon, 16 Jun 2008 21:34:38 +0000 (21:34 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 16 Jun 2008 21:34:38 +0000 (21:34 +0000)
compiler/typecheck/TcUnify.lhs

index d7282b6..1aa0bf6 100644 (file)
@@ -996,7 +996,7 @@ unifyTheta :: TcThetaType -> TcThetaType -> TcM [CoercionI]
 unifyTheta theta1 theta2
   = do  { checkTc (equalLength theta1 theta2)
                   (vcat [ptext (sLit "Contexts differ in length"),
-                         nest 2 $ parens $ ptext (sLit "Use -fglasgow-exts to allow this")])
+                         nest 2 $ parens $ ptext (sLit "Use -XRelaxedPolyRec to allow this")])
         ; uList unifyPred theta1 theta2
         }