----- Original Message -----From: SCOTT J.Sent: Thursday, April 21, 2005 5:16 PMSubject: [Haskell-cafe] a newbie's questionHi, I'm trying to investigate the list monad. I programinstance Monad [] where
xs >= f = concat ( map f xs )
return x = [x]
a = [1,2,3]
b = "there"
do { x <- a
y <- b
return (x , y) }
And I get the error
Syntax error in input (unexpected backslash (lambda))
Jan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe