HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulethese-1.2.1Haskell2010

Data.These.Combinators

This module provides

  • specialised versions of class members e.g. bitraverseThese

  • non-lens variants of Data.These.Lens things, e.g justHere

  • 25 values
  • Packagethese-1.2.1
  • Exports25
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCombinators.hs

Specialised combinators

0 declarations

Bifunctor

Bitraversable

Associativity and commutativity

Other operations

0 declarations

preview

justThis  = Control.Lens.preview _This
justThat  = Control.Lens.preview _That
justThese = Control.Lens.preview _These
justHere  = Control.Lens.preview here
justThere = Control.Lens.preview there
valuejustHere :: These a b -> Maybe a
#
Example1 expression
justHere (This 'x')Just 'x'
Example1 expression
justHere (That 'y')Nothing
Example1 expression
justHere (These 'x' 'y')Just 'x'
valuejustThere :: These a b -> Maybe b
#
Example1 expression
justThere (This 'x')Nothing
Example1 expression
justThere (That 'y')Just 'y'
Example1 expression
justThere (These 'x' 'y')Just 'y'

toListOf

catThis  = Control.Lens.toListOf (Control.Lens.folded . _This)
catThat  = Control.Lens.toListOf (Control.Lens.folded . _That)
catThese = Control.Lens.toListOf (Control.Lens.folded . _These)
catHere  = Control.Lens.toListOf (Control.Lens.folded . here)
catThere = Control.Lens.toListOf (Control.Lens.folded . there)

is / has

5 declarations
isThis   = Control.Lens.Extra.is _This
isThat   = Control.Lens.Extra.is _That
isThese  = Control.Lens.Extra.is _These
hasHere  = Control.Lens.has here
hasThere = Control.Lens.has there

over / map

3 declarations