pufuwozu/roy — Issue #26: Recursive datatypes not allowed (?)
Author: eegg
Created: 2011-11-30 13:50:48+00:00
State: open

Given

data List a = Cons a (List a) | Nil

or

data Tree a = Tree (Tree a) a (Tree a) | Nil

etc., I get the (syntactic) error

Error: Parse error on line 2: Unexpected 'IDENTIFIER'

Not sure what this is referring to; line 2 does not exist.

Haskell accepts these declarations.