Ticket #3888 (closed bug: fixed)
Suggest -XGeneralizedNewtypeDeriving for newtypes
Description
newtype A = A Int deriving Enum
t.hs:1:27:
Can't make a derived instance of `Enum A'
(`A' has non-nullary constructors)
In the newtype declaration for `A'
But perhaps -XGeneralizedNewtypeDeriving should be suggested (ideally only if the wrapped type actually had such an instance)?
Change History
Note: See
TracTickets for help on using
tickets.
