[Haskell-cafe] a newbie's question

SCOTT J. jscott at skynet.be
Thu Apr 21 11:42:40 EDT 2005


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


More information about the Haskell-Cafe mailing list