[Haskell-cafe] Re: [Haskell] Nested guards?

Stefan O'Rear stefanor at cox.net
Thu Dec 6 20:25:50 EST 2007


On Thu, Dec 06, 2007 at 11:40:58PM +0100, Ben Franksen wrote:
> Aaron Denney wrote:
> > On 2007-12-06, Wolfgang Jeltsch <g9ks157k at acme.softbase.org> wrote:
> >> list comprehensions deal with specific operations (map, filter, etc.)
> >> of a specific type ([]).
> > 
> > Ah, so we should bring back monad comprehensions?
> 
> I don't miss monad comprehension much, but I'd like to have a way to use
> comprehension for other sequence types, notably ByteString, array types and
> Data.Sequence (other than converting to lists and back).

If we had monad comprehensions and some kind of restricted monads (see
my post 'Constructor classes considered harmful', but note that I didn't
then and still don't have a tolerable replacement), we'd get bytestring
/ sequence comprehensions for free.

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20071206/1f431a54/attachment.bin


More information about the Haskell-Cafe mailing list