summaryrefslogtreecommitdiff
path: root/testsuite/tests/backpack/should_fail/bkpfail54.stderr
blob: 8fd391624e9b614341b5028a4fe7e074814cadb1 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[1 of 4] Processing p
  Instantiating p
  [1 of 1] Compiling M                ( p\M.hs, bkpfail54.out\p\M.o )
[2 of 4] Processing q
  [1 of 2] Compiling H[sig]           ( q\H.hsig, nothing )
  [2 of 2] Compiling N                ( q\N.hs, nothing )
[3 of 4] Processing r
  Instantiating r
  [1 of 1] Including p
  [1 of 1] Compiling H                ( r\H.hs, bkpfail54.out\r\H.o )
[4 of 4] Processing s
  Instantiating s
  [1 of 3] Including p
  [2 of 3] Including r
  [3 of 3] Including q[H=r:H]
    Instantiating q[H=r:H]
    [1 of 1] Including p
    [1 of 2] Compiling H[sig]           ( q\H.hsig, bkpfail54.out\q\q-EsMFZGC3QiBIz4krwt67aW\H.o )

bkpfail54.bkp:40:5: error: [GHC-15843]
    • Type constructor ‘T1’ has conflicting definitions in the module
      and its hsig file.
      Main module: type T1 :: *
                   type T1 = forall a. a -> a
        Hsig file: type T1 :: *
                   data T1
      Illegal implementation of abstract data:
        Invalid polymorphic type: forall a. a -> a.
    • While checking that ‘r:H’ implements signature ‘H’ in ‘q[H=r:H]’.

bkpfail54.bkp:41:5: error: [GHC-15843]
    • Type constructor ‘T2’ has conflicting definitions in the module
      and its hsig file.
      Main module: type T2 :: *
                   type T2 = forall a. C2 a => a
        Hsig file: type T2 :: *
                   data T2
      Illegal implementation of abstract data:
        Invalid polymorphic type: forall a. C2 a => a.
    • While checking that ‘r:H’ implements signature ‘H’ in ‘q[H=r:H]’.

bkpfail54.bkp:42:5: error: [GHC-15843]
    • Type constructor ‘T3’ has conflicting definitions in the module
      and its hsig file.
      Main module: type T3 :: *
                   type T3 = C2 S => S -> S
        Hsig file: type T3 :: *
                   data T3
      Illegal implementation of abstract data:
        Invalid qualified type: C2 S => S -> S.
    • While checking that ‘r:H’ implements signature ‘H’ in ‘q[H=r:H]’.