Package1.2.1DataThese
these
An either-or-both data type.
- Version1.2.1
- CategoryData, These
- LicenceBSD-3-Clause
- AuthorC. McCann, Oleg Grenrus
- MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
- Homepagegithub.com/haskellari/these
- Pinned byhackage these 1.2.1
- Sourcehackage.haskell.org/package/these-1.2.1
Modules
3 modules- Data.Functor.These1
- Data.These12The These type and associated operations.
- Data.These.Combinators25This module provides specialised versions of class members e.g. bitraverseThese non-lens variants of Data.These.Lens things, e.g justHere
Description
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 and Zip type-classes. semialign-indexed For SemialignWithIndex class, providing ialignWith and izipWith. these-lens For lens combinators. monad-chronicle For transformers variant of These.
Depends on
5 packages- assoc-1.1.1in this set
- base-4.20.2.0with GHC
- binary-0.8.9.3with GHC
- deepseq-1.5.0.0with GHC
- hashable-1.4.7.0in this set