X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcMatches.lhs;h=7f5dfadc70da65ba81f3c63d0e1abc04cb7a4e06;hp=61faca8d3e28ec04fc9e2c3308ba9e231eceaa4a;hb=27ca67931713c36f5ed248de88298416892e5649;hpb=08093c69ca77dc2759d3ecf2effd1152a972be3c diff --git a/compiler/typecheck/TcMatches.lhs b/compiler/typecheck/TcMatches.lhs index 61faca8..7f5dfad 100644 --- a/compiler/typecheck/TcMatches.lhs +++ b/compiler/typecheck/TcMatches.lhs @@ -172,10 +172,10 @@ tcMatch ctxt pat_tys rhs_ty match = tcGRHSs ctxt grhss rhs_ty -- No result signature -- Result type sigs are no longer supported - tc_grhss ctxt (Just res_sig) grhss (co,rhs_ty) + tc_grhss ctxt (Just res_sig) grhss (co, rhs_ty) = do { addErr (ptext SLIT("Ignoring (deprecated) result type signature") <+> ppr res_sig) - tcGRHSs ctxt grhss (co, inner_ty) } + ; tcGRHSs ctxt grhss (co, rhs_ty) } ------------- tcGRHSs :: TcMatchCtxt -> GRHSs Name -> (Refinement, BoxyRhoType)