Thanks for your assistance. I'm using now Notepad.exe . Before I did it in Wordpad. I use Windows XP. I'm trying to solve this nasty problem
 
----- Original Message -----
From: SCOTT J.
Sent: Thursday, April 21, 2005 5:16 PM
Subject: [Haskell-cafe] a newbie's question

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


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to