these: An either-or-both data type & a generalized 'zip with padding' typeclass
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").
The major use case of this is provided by the Align class, representing a
generalized notion of "zipping with padding" that combines structures without
truncating to the size of the smaller input.
Also included is ChronicleT, a monad transformer based on the Monad instance
for These a, along with the usual monad transformer bells and whistles.
[Skip to Readme]
| Versions | 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 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=0.7.0.4 && <1.5), base (>=4.4 && <4.12), bifunctors (>=0.1 && <5.6), binary (>=0.5.0.2 && <0.10), containers (>=0.4 && <0.6), data-default-class (>=0.0 && <0.2), deepseq (>=1.3.0.0 && <1.5), ghc-prim, hashable (>=1.2.3 && <1.3), keys (>=3.10 && <3.13), mtl (>=2 && <2.3), profunctors (>=3 && <5.4), QuickCheck (>=2.10 && <2.12), semigroupoids (>=5 && <5.4), semigroups (>=0.8 && <0.19), transformers (>=0.2 && <0.6), transformers-compat (>=0.2 && <0.7), unordered-containers (>=0.2.4.0 && <0.3), vector (>=0.4 && <0.13), vector-instances (>=3.3.1 && <3.5) [details] |
| License | BSD-3-Clause |
| Author | C. McCann |
| Maintainer | cam@uptoisomorphism.net |
| Revised | Revision 8 made by phadej at Thu Jul 5 12:28:13 UTC 2018 |
| Category | Data, Control |
| Home page | https://github.com/isomorphism/these |
| Source repo | head: git clone https://github.com/isomorphism/these.git |
| Uploaded | by phadej at Fri Jun 16 07:47:51 UTC 2017 |
| Distributions | LTSHaskell:0.7.4, NixOS:0.7.4, Stackage:0.7.4 |
| Downloads | 10537 total (240 in the last 30 days) |
| Rating | 2.25 (votes: 2) [estimated by rule of succession] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2017-06-16 [all 1 reports] Hackage Matrix CI |
Modules
[Index]
Downloads
- these-0.7.4.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'.