summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail076.stderr
blob: c5bd8a5bc8af8466952dc38f932f34aa42aede4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

tcfail076.hs:18:82:
    Couldn't match type ‛res’ with ‛res1’
      ‛res’ is a rigid type variable bound by
            a type expected by the context: (a -> m res) -> m res
            at tcfail076.hs:18:28
      ‛res1’ is a rigid type variable bound by
             a type expected by the context: (b -> m res1) -> m res1
             at tcfail076.hs:18:64
    Expected type: m res1
      Actual type: m res
    Relevant bindings include
      cont :: a -> m res (bound at tcfail076.hs:18:37)
      cont' :: b -> m res1 (bound at tcfail076.hs:18:73)
    In the return type of a call of ‛cont’
    In the expression: cont a
    In the first argument of ‛KContT’, namely ‛(\ cont' -> cont a)’