7 Dec 02:25
Re: Re: [Haskell] Nested guards?
Stefan O'Rear <stefanor <at> cox.net>
2007-12-07 01:25:50 GMT
2007-12-07 01:25:50 GMT
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
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed