compound-types

Sum and Product types and such

https://github.com/nikita-volkov/compound-types

Latest on Hackage:0.1.4.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 and maintained by Nikita Volkov

This library provides first-class multi-arity product- and sum-types and neat type-level utilities for their composition. The solution is quite simple and doesn’t require the advanced proficiency in the language to be applied in practice.

The library supports GHC starting from version 8.6.1 and requires you to enable the NoStarIsType extension.

For a comprehensive introduction please see this blog post.