[Haskell-cafe] a newbie's question

SCOTT J. jscott at skynet.be
Thu Apr 21 11:16:54 EDT 2005


Hi, I'm trying to investigate the list monad. I program

instance 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell-cafe/attachments/20050421/c4646011/attachment.htm


More information about the Haskell-Cafe mailing list