summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/drvfail-foldable-traversable1.stderr
blob: 6c11b4ae91f59352c67c5b38ffef1e1c18c312c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

drvfail-foldable-traversable1.hs:9:23: error: [GHC-39999]
    • No instance for ‘Functor Trivial1’
        arising from the 'deriving' clause of a data type declaration
      Possible fix:
        use a standalone 'deriving instance' declaration,
          so you can specify the instance context yourself
    • When deriving the instance for (Traversable Trivial1)

drvfail-foldable-traversable1.hs:13:22: error: [GHC-39999]
    • No instance for ‘Foldable Trivial2’
        arising from the 'deriving' clause of a data type declaration
      Possible fix:
        use a standalone 'deriving instance' declaration,
          so you can specify the instance context yourself
    • When deriving the instance for (Traversable Trivial2)

drvfail-foldable-traversable1.hs:17:22: error: [GHC-16437]
    • Can't make a derived instance of ‘Foldable Infinite’:
        Constructor ‘Infinite’ must not contain function types
    • In the data declaration for ‘Infinite’

drvfail-foldable-traversable1.hs:21:22: error: [GHC-16437]
    • Can't make a derived instance of ‘Traversable (Cont r)’:
        Constructor ‘Cont’ must not contain function types
    • In the data declaration for ‘Cont’