[Haskell-cafe] Re: The container problem

Achim Schneider barsoap at web.de
Sun Sep 28 04:57:58 EDT 2008


"Ariel J. Birnbaum" <valgarv at gmx.net> wrote:

> > I'm not actually bothered about every possible monad being
> > representable as such in Haskell. I'd just like Set to work. ;-)
> 
> What would "work" mean in this case? I see two different meanings:
> 
> 1. Use monadic operations (mapM, guard) on Sets. 
> 2. Make the nice monadic syntax work for sets.
3. implement >>=, guardS and mapS for

data MyHack Set = MyHack Set

and abuse the do-notation for your own wicked purposes.

-- 
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or broadcasting of this signature prohibited.



More information about the Haskell-Cafe mailing list