thorn

Datatype Manipulation with Template Haskell

https://github.com/Kinokkory/Thorn

Latest on Hackage:0.2@rev: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.

BSD-3-Clause licensed by Yusuke Matsushita
Maintained by Yusuke Matsushita

Thorn generates

  • functors from various kinds of datatypes, regardless of arity or variances.

  • folds and unfolds from various kinds of recursive datatypes, including mutually recursive ones.

A single function of Thorn will give you a lot. Just try it.