summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail032.stderr
blob: ce3ce2d0188dffcd91494146f4607f249be7074a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

tcfail032.hs:14:8: error:
    • Couldn't match expected type ‘a1 -> Int’ with actual type ‘t’
        because type variable ‘a1’ would escape its scope
      This (rigid, skolem) type variable is bound by
        an expression type signature:
          Eq a1 => a1 -> Int
        at tcfail032.hs:14:8-30
    • In the expression: (x :: (Eq a) => a -> Int)
      In an equation for ‘f’: f x = (x :: (Eq a) => a -> Int)
    • Relevant bindings include
        x :: t (bound at tcfail032.hs:14:3)
        f :: t -> forall a. Eq a => a -> Int (bound at tcfail032.hs:14:1)