[Haskell-cafe] YAHT Question about Exercise 4.8

Futari gemini at live.ca
Sat Jul 25 02:55:34 EDT 2009

Hi, I was trying to use the solution given, but I don't know how to use it...
How do I create something that is of type List?

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

>From the previous examples, I was thinking something like Cons 'a' 'b' 'c'
would create a list ['a','b','c'] but it gave me errors... help please,

View this message in context: http://www.nabble.com/YAHT-Question-about-Exercise-4.8-tp24655087p24655087.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

More information about the Haskell-Cafe mailing list