On Fri, Sep 19, 2008 at 7:35 PM, Antoine Latter <[EMAIL PROTECTED]> wrote:
> I'm not sure how well it would hold up under maintenance, but you coud
> have a config sum-type which is itself a monoid, and then create two
> of them:
>

And by sum-type I mean product type.  Sheesh.

Although having your config options in a sum-type packed into a Set,
which is itself a Monoid is another option.  Then you get 'mempty' and
'mappend' for free.

I think I saw a blog-post or something detailing this, but I don't
have a book-mark.

-Antoine
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to