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

tcfail117.hs:6:32: error: [GHC-30750]
    • 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)
    • In the newtype declaration for ‘N1’
    Suggested fix:
      Perhaps you intended to use GeneralizedNewtypeDeriving
      for GHC's newtype-deriving extension

tcfail117.hs:7:32: error: [GHC-30750]
    • 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’