X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FdeSugar%2FCheck.lhs;h=fa85a1dcb7ccada70e26c7594eb0b25b4af75a0a;hp=3d3aa4f3f248dde9ec1e81ce58ff957eb71130c2;hb=7028041739973c3dc17b23a98c65c892f41f0647;hpb=aca4fde66f74bdb882e9151cd65ef8092246def1 diff --git a/compiler/deSugar/Check.lhs b/compiler/deSugar/Check.lhs index 3d3aa4f..fa85a1d 100644 --- a/compiler/deSugar/Check.lhs +++ b/compiler/deSugar/Check.lhs @@ -110,9 +110,11 @@ type EqnSet = UniqSet EqnNo check :: [EquationInfo] -> ([ExhaustivePat], [EquationInfo]) -- Second result is the shadowed equations -- if there are view patterns, just give up - don't know what the function is -check qs = (untidy_warns, shadowed_eqns) +check qs = pprTrace "check" (ppr tidy_qs) $ + (untidy_warns, shadowed_eqns) where - (warns, used_nos) = check' ([1..] `zip` map tidy_eqn qs) + tidy_qs = map tidy_eqn qs + (warns, used_nos) = check' ([1..] `zip` tidy_qs) untidy_warns = map untidy_exhaustive warns shadowed_eqns = [eqn | (eqn,i) <- qs `zip` [1..], not (i `elementOfUniqSet` used_nos)]