[Haskell-cafe] Parsing arguments and reading configuration

Antoine Latter aslatter at gmail.com
Fri Sep 19 20:39:32 EDT 2008


On Fri, Sep 19, 2008 at 7:35 PM, Antoine Latter <aslatter at gmail.com> 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


More information about the Haskell-Cafe mailing list