1 // The last character of the program is an extra closing parenthesis
\r
2 data List a = Nil | Cons a (List a)
\r
7 reverse l = reverseAux Nil l
\r
9 reverseAux accum Nil = accum
\r
10 reverseAux accum (Cons h t) = reverseAux (Cons h accum) t
\r
12 main = first (reverse l)
\r
14 l = Cons 1 (Cons 2 (Cons 3 Nil)))
\r
16 14:37-14:38: No corresponding opening parenthesis for ')'.