summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T1133A.stderr
blob: 1c8f686f2a3765f898b81aa88aa2935146da8b5b (plain)
1
2
3
4
5
6
7

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)
        Try GeneralizedNewtypeDeriving for GHC's newtype-deriving extension
    • In the newtype declaration for ‘X’