Debian Codegraph @

tests/haskell/Types/11/error

raw
1 Main.hs:2.9-14: error:
2 • Cannot unify 't' with '[t]' because of occurs check
3 • Relevant bindings:
4 x :: t
5 f :: t -> [t]
6 • In expression '[x] : []':
7 • In equation `f x = x : ([x] : [])`
8 |
9 2 | f x = x:[x]:[]
10 | ^^^^^^
11