-// The last character of the program is an extra closing parenthesis\r
-data List a = Nil | Cons a (List a)\r
-\r
-first Nil = 0\r
-first (Cons x _) = x\r
-\r
-reverse l = reverseAux Nil l \r
- where\r
- reverseAux accum Nil = accum\r
- reverseAux accum (Cons h t) = reverseAux (Cons h accum) t \r
-\r
-main = first (reverse l) \r
- where\r
- l = Cons 1 (Cons 2 (Cons 3 Nil)))\r
---\r
+// The last character of the program is an extra closing parenthesis
+data List a = Nil | Cons a (List a)
+
+first Nil = 0
+first (Cons x _) = x
+
+reverse l = reverseAux Nil l
+ where
+ reverseAux accum Nil = accum
+ reverseAux accum (Cons h t) = reverseAux (Cons h accum) t
+
+main = first (reverse l)
+ where
+ l = Cons 1 (Cons 2 (Cons 3 Nil)))
+--
14:37-14:38: No corresponding opening parenthesis for ')'.
\ No newline at end of file