summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail189.stderr
blob: 59d32b37348f5fb8dc0c3f2000b524bcfcf11c6b (plain)
1
2
3
4
5
6
7
8
9
10
11

tcfail189.hs:10:31: error: [GHC-83865]
    • Couldn't match type: [a1]
                     with: a -> a0
      Expected: (a -> a0) -> [a] -> [[a]]
        Actual: [a1] -> [a1]
    • 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]