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").

' 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 semialign> For 'Align' and

'Zip' type-classes.

  • <https://hackage.haskell.org/package/semialign-indexed semialign-indexed> For

'SemialignWithIndex' class, providing 'ialignWith' and 'izipWith'.

  • <https://hackage.haskell.org/package/these-lens these-lens> For lens

combinators.

  • <http://hackage.haskell.org/package/monad-chronicle monad-chronicle> For

transformers variant of 'These'.


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

Categories

Releases

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