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:
https://hackage.haskell.org/package/semialign For Align
and Zip
type-classes.
https://hackage.haskell.org/package/semialign-indexed For SemialignWithIndex
class, providing ialignWith
and izipWith
https://hackage.haskell.org/package/these-lens For lens combinators.
http://hackage.haskell.org/package/monad-chronicle For transformers variant of These
.
System | Target | Derivation | Build status |
---|---|---|---|
x86_64-linux | /gnu/store/w1ja6jv4689y7h9cx3jjnpwpw9mmgar5-ghc-these-1.0.1.drv | ||
mips64el-linux | /gnu/store/d0ql30188qg3gcczc7f50c21cdxi7va2-ghc-these-1.0.1.drv | ||
i686-linux | /gnu/store/gg6ccfamb1hn7s8s0vml98d2w1p6w127-ghc-these-1.0.1.drv | ||
i586-gnu | /gnu/store/hb78nqjb0jjgyyvc74i5nph247aa4l7a-ghc-these-1.0.1.drv | ||
armhf-linux | /gnu/store/6n2didchgjllmz47c5pqhd9048whvkgv-ghc-these-1.0.1.drv | ||
aarch64-linux | /gnu/store/5wdn62ylb7why3cbrc368zb67jhk06yy-ghc-these-1.0.1.drv |
Linter | Message | Location |
---|---|---|
No lint warnings ✓ |