blob: f23243bdd0b7e670047ae543df4e4a124f3fdd92 (
plain)
1
2
3
4
5
6
7
8
9
10
|
tcfail189.hs:10:31: error:
• Couldn't match type ‘[a0]’ with ‘[a] -> [[a]]’
Expected type: (a -> Integer) -> [a] -> [[a]]
Actual type: [a0] -> [a0]
• Possible cause: ‘take’ is applied to too many arguments
In the expression: take 2
In a stmt of a list comprehension: then group by x using take 2
In the expression:
[length x | x <- [1 .. 10], then group by x using take 2]
|