summaryrefslogtreecommitdiff
path: root/compiler/deSugar/Match.lhs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-11-27 14:18:35 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2014-11-27 14:25:19 +0000
commita67ebbecfb10c91bb2793cb2f7d91f25aa23e493 (patch)
treee3fd19e4db40d52c1f6e6a199295cd05259ce21d /compiler/deSugar/Match.lhs
parentd8c437b37436e150986a7607f574ac2c3a604f40 (diff)
downloadhaskell-a67ebbecfb10c91bb2793cb2f7d91f25aa23e493.tar.gz
Resume reporting incomplete pattern matches for record updates
They were being inadvertently suppressed, even if you said -fwarn-incomplete-record-updates See Trac #5728
Diffstat (limited to 'compiler/deSugar/Match.lhs')
-rw-r--r--compiler/deSugar/Match.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/deSugar/Match.lhs b/compiler/deSugar/Match.lhs
index 8bc8a116af..3bbb0ecd32 100644
--- a/compiler/deSugar/Match.lhs
+++ b/compiler/deSugar/Match.lhs
@@ -79,7 +79,7 @@ matchCheck_really dflags ctx@(DsMatchContext hs_ctx _) vars ty qs
; match vars ty qs }
where
(pats, eqns_shadow) = check qs
- incomplete = incomplete_flag hs_ctx && (notNull pats)
+ incomplete = incomplete_flag hs_ctx && notNull pats
shadow = wopt Opt_WarnOverlappingPatterns dflags
&& notNull eqns_shadow