blob: 958e0933e1472c34894252f4b33b12c8c73a2b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
too-many.hs:9:11: error: [GHC-83865]
• Couldn't match type ‘Bool’ with ‘Int -> Bool’
Expected: Int -> Int -> Bool
Actual: Int -> Bool
• Possible cause: ‘f1’ is applied to too many arguments
In the first argument of ‘foo’, namely ‘(f1 2 3)’
In the expression: foo (f1 2 3)
In an equation for ‘g1’: g1 = foo (f1 2 3)
too-many.hs:16:11: error: [GHC-83865]
• Couldn't match expected type ‘Int -> Int -> Bool’
with actual type ‘Bool’
• In the first argument of ‘foo’, namely ‘(f2 2)’
In the expression: foo (f2 2)
In an equation for ‘g2’: g2 = foo (f2 2)
|