HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package1.2.1DataThese

these

An either-or-both data type.

Modules

3 modules

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

Used by in this set · 7