union

Extensible type-safe unions

Version on this page:0.1.1.0
LTS Haskell 19.13:0.1.2@rev:7
Stackage Nightly 2022-03-17:0.1.2@rev:7
Latest on Hackage:0.1.2@rev:7

See all snapshots union appears in

BSD-3-Clause licensed by Index Int
Maintained by Index Int
This version can be pinned in stack with:union-0.1.1.0@sha256:51242c5382c32f9f8d4e60692f6234774989566b78c882e411da14236fe2d787,1984

Module documentation for 0.1.1.0

Extensible type-safe unions for Haskell with prisms using modern GHC features. Dual to vinyl records. Unions are also known as corecords or polymorphic variants. Neither requires a Typeable constraint nor uses unsafe coercions at the cost of linear time access (negligible in practice).