I'm just starting out with Haskell and I want to define a type like this :
data Point = Int | [Int]
ie. at any Point I want to store either a single integer or a list of integers. (Ultimately I'm going to store these Points in a list)
For some reason it tells me there's a parse error at the [Int].
What am I misunderstanding?