derive-monoid

derive Semigroup/Monoid/IsList

https://github.com/sboosali/derive-monoid#readme

Latest on Hackage:0.0.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

MIT licensed by Spiros Boosalis
Maintained by [email protected]

when your type can hold a list of itself, you can derive simple (but total/lawful) Semigroup/Monoid/IsList instances with TemplateHaskell.

see the Derive.List for examples and documentation. browse the test suite for more (buildable) examples: