summaryrefslogtreecommitdiff
path: root/testsuite/tests/backpack/should_fail/bkpfail45.stderr
blob: 5049f5f4b39ff242fa0aef2793ccf1306e915a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[1 of 3] Processing p
  [1 of 2] Compiling A[sig]           ( p\A.hsig, nothing )
  [2 of 2] Compiling B                ( p\B.hs, nothing )
[2 of 3] Processing a
  Instantiating a
  [1 of 1] Compiling A                ( a\A.hs, bkpfail45.out\a\A.o )
[3 of 3] Processing q
  Instantiating q
  [1 of 1] Including p[A=a:A]
    Instantiating p[A=a:A]
    [1 of 2] Compiling A[sig]           ( p\A.hsig, bkpfail45.out\p\p-KvF5Y9pEVY39j64PHPNj9i\A.o )

bkpfail45.bkp:14:9: error: [GHC-15843]
    • Type constructor ‘T’ has conflicting definitions in the module
      and its hsig file.
      Main module: type role T phantom
                   type T :: * -> *
                   data T a = T
        Hsig file: type role T nominal
                   type T :: * -> *
                   data T a = T
      The roles do not match.
    • While checking that ‘a:A’ implements signature ‘A’ in ‘p[A=a:A]’.