union

Extensible type-safe unions

Version on this page:0.1.1.1
LTS Haskell 21.25:0.1.2@rev:8
Stackage Nightly 2023-06-21:0.1.2@rev:8
Latest on Hackage:0.1.2@rev:8

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.1@sha256:d622d02000ede8bd5d88a94e2889aafefd1beff2cc50c5452cd47b40e17ab033,1992

Module documentation for 0.1.1.1

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).