Error message text for invalid record wildcard match
If I say
data LogOutView = LogOutView
html LogOutView { .. } = ()
GHC says
Illegal .. notation for constructor LogOutView.
The constructor has no labeled fields
On https://github.com/haskell/error-messages/issues/15, we suggest
The data constructor 'LogOutView' does not have named record fields,
so a pattern match 'LogOutView { .. }' is incorrect.
Possible fixes:
* Replace the pattern 'LogOutView { .. }' with 'LogOutView'
* Replace the pattern 'LogOutView { .. }' with 'LogOutView {}'. This version works even if
you add/remove fields to 'LogOutView' later.
* Add named record fields to the declaration of constructor 'LogOutView' at LogOutView.hs:3.
as an improvement.