summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/mc19.stderr
blob: 1b9682e6c857b21897148d20f21b4c4d08548c3c (plain)
1
2
3
4
5
6
7
8

mc19.hs:10:31: error:
    • Occurs check: cannot construct the infinite type: a ~ [a]
      Expected type: [a] -> [a]
        Actual type: [a] -> [[a]]
    • In the expression: inits
      In a stmt of a monad comprehension: then inits
      In the expression: [x | x <- [3, 2, 1], then inits]