RE: need help w/ monad comprehension syntax

thanks, did not know that. the articles that i read are outdated in that respect... using the "do" notation is just fine. with the list notation not working i thought that i musunderstand something about monads. ;-) konst -----Original Message----- From: Tom Pledger [mailto:Tom.Pledger@peace.com] Sent: Thursday, February 15, 2001 5:22 PM To: haskell-cafe@haskell.org Subject: need help w/ monad comprehension syntax Konst Sushenko writes: | what am i missing? : | > --g :: State String Char | > g = [ x | x <- return 'a' ] Hi. The comprehension syntax used to be for monads in general (in Haskell 1.4-ish), but is now (Haskell 98) back to being specific to lists. Does it help if you use do-notation instead? Regards, Tom _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (1)
-
Konst Sushenko