summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/FD1.stderr
blob: 19d698294a818536b4c282392d7e52a9484b36f5 (plain)
1
2
3
4
5
6
7
8
9
10

FD1.hs:16:1: error:
    • Couldn't match expected type ‘Int -> Int’ with actual type ‘a’
      ‘a’ is a rigid type variable bound by
        the type signature for:
          plus :: forall a. E a (Int -> Int) => Int -> a
        at FD1.hs:15:9
    • The equation(s) for ‘plus’ have two arguments,
      but its type ‘Int -> a’ has only one
    • Relevant bindings include plus :: Int -> a (bound at FD1.hs:16:1)