blob: dd750cef2b5a9562af024089261c0272e6d5f77f (
plain)
1
2
3
4
5
6
7
8
9
|
T1133A.hs:7:28: error:
• Can't make a derived instance of ‘Enum X’:
‘X’ must be an enumeration type
(an enumeration consists of one or more nullary, non-GADT constructors)
• In the newtype declaration for ‘X’
Suggested fix:
Perhaps you intended to use GeneralizedNewtypeDeriving
for GHC's newtype-deriving extension
|