[Haskell-cafe] Mo' comprehensions
Lennart Augustsson
lennart at augustsson.net
Sat Dec 30 11:30:51 EST 2006
What would the Comprehensible class have? And how would it
be different from Monad(Zero)?
-- Lennart
On Dec 30, 2006, at 10:05 , Diego Navarro wrote:
> I was solving some programming puzzles today[1], and found myself
> pining for Map comprehensions.
>
> Maybe there should be a Comprehensible class that's automatically
> mapped to comprehension syntax. It's rather odd to have them only for
> lists. That would be both more general and more elegant than just
> bringing back monad comprehensions.
>
> Is there any obvious reason why this wouldn't work?
>
> [1] www.projecteuler.net <-- fun stuff!
>
> --
> -- Diego Navarro
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list