2 data List a = Nil | Cons a (List a)
\r
4 build :: (forall l. l -> (a -> l -> l) -> l) -> List a
\r
7 main = build (\nil cons -> cons (1 :: Integer) (Cons (2 :: Integer) nil))
\r
10 7:48-7:73: Expected <a> got <List Integer>.
\r
11 7:69-7:72: Expected <List Integer> got <a>.