these: An either-or-both data type & a generalized 'zip with padding' typeclass
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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.
For a dependency light version, check https://hackage.haskell.org/package/data-or package.
[Skip to Readme]
Properties
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, 0.7.5, 0.7.6, 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 | aeson (>=1.4.2.0 && <1.5), base (>=4.5.1.0 && <4.13), base-compat (>=0.10.5 && <0.11), bifunctors (>=5.5.3 && <5.6), binary (>=0.5.1.0 && <0.10), containers (>=0.4.2.1 && <0.7), data-default-class (>=0.1.2.0 && <0.2), deepseq (>=1.3.0.0 && <1.5), ghc-prim, hashable (>=1.2.7.0 && <1.3), keys (>=3.12.1 && <3.13), lens (>=4.17 && <4.18), mtl (>=2.1.3 && <2.3), QuickCheck (>=2.12.6.1 && <2.13), semigroupoids (>=5.3.1 && <5.4), semigroups (>=0.18.5 && <0.19), transformers (>=0.3.0.0 && <0.6), transformers-compat (>=0.6.2 && <0.7), unordered-containers (>=0.2.8.0 && <0.3), vector (>=0.12.0.2 && <0.13), vector-instances (>=3.4 && <3.5) [details] |
License | BSD-3-Clause |
Author | C. McCann |
Maintainer | oleg.grenrus@iki.fi |
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 2019-01-26T19:52:31Z |
Modules
[Index] [Quick Jump]
Downloads
- these-0.7.6.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees