X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcBinds.lhs;h=aa179b2842675bd6e8b6a0ad109a7fe9beb418eb;hb=ba16e1bfde86cc6d8fafa9be8a33b3b6172f262f;hp=7890091ff1e90628a8dd181bfef8cd4464c2f5fe;hpb=93f3bbbece9f46811946d9de10a90f6c7a2114d6;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcBinds.lhs b/compiler/typecheck/TcBinds.lhs index 7890091..aa179b2 100644 --- a/compiler/typecheck/TcBinds.lhs +++ b/compiler/typecheck/TcBinds.lhs @@ -154,7 +154,7 @@ tcValBinds top_lvl (ValBindsOut binds sigs) thing_inside ; ty_sigs = filter isVanillaLSig sigs ; sig_fn = mkTcSigFun ty_sigs } - ; poly_ids <- mapM tcTySig ty_sigs + ; poly_ids <- checkNoErrs (mapAndRecoverM tcTySig ty_sigs) -- No recovery from bad signatures, because the type sigs -- may bind type variables, so proceeding without them -- can lead to a cascade of errors