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

FD1.hs:16:1: error:
    • Couldn't match expected type ‘a’ with actual type ‘Int -> Int’
      ‘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:1-38
    • 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)