summaryrefslogtreecommitdiff
path: root/testsuite/tests/backpack/should_fail/bkpfail07.stderr
blob: 251fd67f0b474912e7fc9b0298552684242ded2e (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:
    • 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]