union: Extensible type-safe unions

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

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

Modules

[Last Documentation]

  • Data
    • Data.Union

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.2, 0.1.3, 0.1.3.2
Dependencies base (>=4.20 && <4.23), deepseq (>=1.4 && <1.7), hashable (>=1.2 && <1.6), profunctors (>=5.1 && <5.7), tagged (>=0.8 && <0.10), vinyl (>=0.14.3 && <0.15) [details]
Tested with ghc ==9.10.3, ghc ==9.12.4, ghc ==9.14.1
License BSD-3-Clause
Author Vladislav Zavialov
Maintainer Vladislav Zavialov <vlad.z.4096@gmail.com>
Uploaded by int_index at 2026-04-19T21:26:22Z
Revised Revision 1 made by int_index at 2026-09-28T17:22:43Z
Category Data
Bug tracker https://github.com/int-index/union/issues
Source repo head: git clone git@github.com:int-index/union.git
Distributions LTSHaskell:0.1.3.2, Stackage:0.1.3.2
Reverse Dependencies 3 direct, 1 indirect [details]
Downloads 5014 total (25 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-04-20 [all 2 reports]