[Haskell-beginners] What is a "Monad Comprehension" ?

akash g akaberto at gmail.com
Mon Apr 7 09:38:46 UTC 2014


At one point of time, comprehensions were available for all monads.  Then
it was removed, and has now been added back as a language extension (from
the cursory glance that I gave)

Basically, monad comprehensions are about using the samesyntactic sugar for
different monads (like the do notation)

Perhaps, this'll help (if you haven't seen this already)

https://ghc.haskell.org/trac/ghc/wiki/MonadComprehensions


On Mon, Apr 7, 2014 at 2:15 PM, Kim-Ee Yeoh <ky3 at atamo.com> wrote:

>
> On Mon, Apr 7, 2014 at 3:33 PM, John M. Dlugosz <ngnr63q02 at sneakemail.com>wrote:
>
>> I know about List Comprehensions, but what is a general Monad
>> Comprehension?  List Comprehensions are the use of set-builder notation to
>> define a list, so I don't understand how that would generalize.
>
>
> Assuming that you have done a search and that you're still stumped, how
> can you make the question more specific?
>
> Do you think that quoting specific bits of what you have read might help
> us help you more?
>
> -- Kim-Ee
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140407/80a81c62/attachment.html>


More information about the Beginners mailing list