need help w/ monad comprehension syntax
Thu, 15 Feb 2001 17:43:04 -0800
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
From: Tom Pledger [mailto:[email protected]]
Sent: Thursday, February 15, 2001 5:22 PM
To: [email protected]
Subject: need help w/ monad comprehension syntax
Konst Sushenko writes:
| what am i missing?
| > --g :: State String Char
| > g = [ x | x <- return 'a' ]
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?
Haskell-Cafe mailing list