Suggests -fglasgow-exts for contexts-differ-in-length error
authorsimonpj@microsoft.com <unknown>
Mon, 11 Dec 2006 16:05:17 +0000 (16:05 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 11 Dec 2006 16:05:17 +0000 (16:05 +0000)
compiler/typecheck/TcUnify.lhs

index 5fcaea6..169cf7b 100644 (file)
@@ -841,7 +841,8 @@ unifyTheta :: TcThetaType -> TcThetaType -> TcM ()
 -- Acutal and expected types
 unifyTheta theta1 theta2
   = do { checkTc (equalLength theta1 theta2)
-                 (ptext SLIT("Contexts differ in length"))
+                 (vcat [ptext SLIT("Contexts differ in length"),
+                        nest 2 $ parens $ ptext SLIT("Use -fglasgow-exts to allow this")])
        ; uList unifyPred theta1 theta2 }
 
 ---------------