summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T2239.stderr
blob: b322d9f06d3c0bc0f8f36bfa4d1de9691ed3654a (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

T2239.hs:47:13:
    Couldn't match type ‛b -> b’
                  with ‛forall b1. MyEq b1 Bool => b1 -> b1’
    Expected type: (forall b1. MyEq b1 Bool => b1 -> b1) -> b -> b
      Actual type: (b -> b) -> b -> b
    In the expression:
        id ::
          (forall b. MyEq b Bool => b -> b)
          -> (forall b. MyEq b Bool => b -> b)
    In an equation for ‛complexFD’:
        complexFD
          = id ::
              (forall b. MyEq b Bool => b -> b)
              -> (forall b. MyEq b Bool => b -> b)

T2239.hs:50:13:
    Couldn't match type ‛Bool -> Bool’
                  with ‛forall b1. b1 ~ Bool => b1 -> b1’
    Expected type: (forall b1. b1 ~ Bool => b1 -> b1) -> b -> b
      Actual type: (b -> b) -> b -> b
    In the expression:
        id ::
          (forall b. b ~ Bool => b -> b) -> (forall b. b ~ Bool => b -> b)
    In an equation for ‛complexTF’:
        complexTF
          = id ::
              (forall b. b ~ Bool => b -> b) -> (forall b. b ~ Bool => b -> b)