Change an assert to a warn
authorsimonpj@microsoft.com <unknown>
Thu, 6 May 2010 16:11:11 +0000 (16:11 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 6 May 2010 16:11:11 +0000 (16:11 +0000)
This is in the constraint simplifier which I'm about
to rewrite, so I'm hoping the assert isn't fatal!

compiler/typecheck/TcTyFuns.lhs

index 7bb8680..68e2051 100644 (file)
@@ -315,7 +315,7 @@ no further propoagation is possible.
 --
 normaliseEqs :: [Inst] -> TcM EqConfig
 normaliseEqs eqs 
 --
 normaliseEqs :: [Inst] -> TcM EqConfig
 normaliseEqs eqs 
-  = do { ASSERTM2( allM wantedEqInstIsUnsolved eqs, ppr eqs )
+  = do { WARNM2( anyM wantedEqInstIsUnsolved eqs, ppr eqs )
        ; traceTc $ ptext (sLit "Entering normaliseEqs")
 
        ; eqss <- mapM normEqInst eqs
        ; traceTc $ ptext (sLit "Entering normaliseEqs")
 
        ; eqss <- mapM normEqInst eqs