File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
message-index/messages/GHC-17335 Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ module DsIncompleteRecSel where
2+
3+ data T = T1 | T2 { x :: Bool }
4+
5+ f T1 = True -- handle the T1 case
6+ f a = x a
Original file line number Diff line number Diff line change 1+ module DsIncompleteRecSel where
2+
3+ data T = T1 | T2 { x :: Bool }
4+
5+ f a = x a
Original file line number Diff line number Diff line change 1+ ---
2+ title : Incomplete record selector application
3+ ---
Original file line number Diff line number Diff line change 1+ ---
2+ title : Incomplete record selector application
3+ summary : A record selector application may not be successful
4+ severity : warning
5+ flag : -Wincomplete-record-selectors
6+ introduced : 9.10.1
7+ ---
8+
9+ This warning is triggered when GHC is not certain whether a record selector
10+ application will be successful. This happens when a record selector is not
11+ defined for all constructors of a data type (a.k.a. partial record field
12+ selector) and it is applied to a value whose data constructor can't be proved by
13+ GHC to be one for which the selector is defined.
You can’t perform that action at this time.
0 commit comments