Package Info

ghc-these


An either-or-both data type


Unspecified

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.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/these

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.7.3-bp150.1.3 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • x86-64
  • ghc-these
  • ghc-these-devel
1.1.1.1-bp154.2.13 info GA Release 2022-05-09 15 SP4 (BETA)
  • AArch64
  • ppc64le
  • x86-64
  • ghc-these
  • ghc-these-devel