X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnPat.lhs;h=63672553501c4ccd7f83d57c5766b942076264b7;hb=354d1eb692be9fa5683dab82258062ebc61fdb2d;hp=b49e1cde3115256aad14db3976fcbdf913d01924;hpb=18b8ff4f3fae282f544b2fdc216acad67392ca8f;p=ghc-hetmet.git diff --git a/compiler/rename/RnPat.lhs b/compiler/rename/RnPat.lhs index b49e1cd..6367255 100644 --- a/compiler/rename/RnPat.lhs +++ b/compiler/rename/RnPat.lhs @@ -220,9 +220,7 @@ rnPats ctxt pats thing_inside -- Nor can we check incrementally for shadowing, else we'll -- complain *twice* about duplicates e.g. f (x,x) = ... ; let names = collectPatsBinders pats' - ; checkDupNames doc_pat names - ; checkShadowedNames doc_pat envs_before - [(nameSrcSpan name, nameOccName name) | name <- names] + ; addErrCtxt doc_pat $ checkDupAndShadowedNames envs_before names ; thing_inside pats' } } where doc_pat = ptext (sLit "In") <+> pprMatchContext ctxt @@ -481,7 +479,7 @@ rnHsRecFields1 ctxt mk_arg (HsRecFields { rec_flds = flds, rec_dotdot = dotdot } extras = [ HsRecField { hsRecFieldId = L loc f , hsRecFieldArg = name_to_arg (L loc f) - , hsRecPun = True } + , hsRecPun = False } | f <- absent_flds ] ; return (flds ++ extras) }