these: An either-or-both data type.
This package provides a data type These a b
which can hold a value of either
type or values of each type. This is usually thought of as an "inclusive or"
type (contrasting Either a b
as "exclusive or") or as an "outer join" type
(contrasting (a, b)
as "inner join").
data These a b = This a | That b | These a b
Since version 1, this package was split into parts:
semialign For
Align
andZip
type-classes.semialign-indexed For
SemialignWithIndex
class, providingialignWith
andizipWith
.these-lens For lens combinators.
monad-chronicle For transformers variant of
These
.
Downloads
- these-1.2.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.2, 0.3, 0.4, 0.4.1, 0.4.2, 0.6.0.0, 0.6.1.0, 0.6.2.0, 0.6.2.1, 0.7, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.8, 0.8.1, 1, 1.0.1, 1.1, 1.1.1, 1.1.1.1, 1.2, 1.2.1 |
---|---|
Change log | CHANGELOG.md |
Dependencies | assoc (>=1.1.1 && <1.2), base (>=4.12.0.0 && <4.21), binary (>=0.8.6.0 && <0.10), deepseq (>=1.4.4.0 && <1.6), foldable1-classes-compat (>=0.1 && <0.2), hashable (>=1.4.4.0 && <1.6) [details] |
License | BSD-3-Clause |
Author | C. McCann, Oleg Grenrus |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Revised | Revision 1 made by phadej at 2024-08-02T08:10:59Z |
Category | Data, These |
Home page | https://github.com/haskellari/these |
Source repo | head: git clone https://github.com/haskellari/these.git(these) |
Uploaded | by phadej at 2024-05-16T19:49:16Z |
Distributions | Arch:1.1.1.1, Debian:1.1.1.1, Fedora:1.2, LTSHaskell:1.2.1, NixOS:1.2.1, Stackage:1.2.1, openSUSE:1.2.1 |
Reverse Dependencies | 71 direct, 7807 indirect [details] |
Downloads | 60298 total (575 in the last 30 days) |
Rating | 2.5 (votes: 4) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2024-05-16 [all 1 reports] |