summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/FD1.stderr
blob: 64a01c43e11a152d602addf1b8d2ae0e3aa7075c (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 value arguments,
        but its type ‘Int -> a’ has only one
    • Relevant bindings include plus :: Int -> a (bound at FD1.hs:16:1)