summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail117.stderr
blob: e35a2581c847ed244da1f774ab8a409a49987269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

tcfail117.hs:5:32:
    Can't make a derived instance of ‘Enum N1’:
      ‘N1’ 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 ‘N1’

tcfail117.hs:6:32:
    Can't make a derived instance of ‘Enum N2’:
      ‘N2’ must be an enumeration type
      (an enumeration consists of one or more nullary, non-GADT constructors)
    In the data declaration for ‘N2’