summaryrefslogtreecommitdiff
path: root/testsuite/tests/backpack/should_fail/bkpfail07.stderr
blob: 7829f1e0cd8d09499c2b6c49c45d0579166f0073 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[1 of 3] Processing p
  [1 of 1] Compiling H[sig]           ( p\H.hsig, nothing )
[2 of 3] Processing h
  [1 of 3] Compiling T                ( h\T.hs, nothing )
  [2 of 3] Compiling H                ( h\H.hs, nothing )
  [3 of 3] Compiling A[sig]           ( h\A.hsig, nothing )
[3 of 3] Processing q
  [1 of 3] Compiling A[sig]           ( q\A.hsig, nothing )
  [2 of 3] Instantiating h
  [3 of 3] Instantiating p

bkpfail07.bkp:6:9: error: [GHC-15843]
    • Type constructor ‘T’ has conflicting definitions in the module
      and its hsig file.
      Main module: type T :: *
                   data T = T GHC.Types.Bool
        Hsig file: type T :: *
                   data T = T GHC.Types.Int
      The constructors do not match: The types for ‘T’ differ.
    • While checking that ‘h[A=<A>]:H’ implements signature ‘H’ in ‘p[H=h[A=<A>]:H]’.