HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleprofunctors-5.6.3Haskell2010

Data.Profunctor.Choice

Contents
  1. Strength
  2. Costrength
Synopsis
  • Packageprofunctors-5.6.3
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceChoice.hs

Strength

classclass Profunctor p => Choice (p :: Type -> Type -> Type) where

The generalization of Costar of Functor that is strong with respect to Either.

Note: This is also a notion of strength, except with regards to another monoidal structure that we can choose to equip Hask with: the cocartesian coproduct.

Methods

Instances22Choice, …
newtypenewtype TambaraSum (p :: Type -> Type -> Type) a b

TambaraSum is cofreely adjoins strength with respect to Either.

Note: this is not dual to Data.Profunctor.Tambara.Tambara. It is Data.Profunctor.Tambara.Tambara with respect to a different tensor.

Constructors

Instances7ProfunctorComonad, ProfunctorAdjunction, ProfunctorFunctor, Category, Choice, Profunctor, …
datadata PastroSum (p :: Type -> Type -> Type) a b where

PastroSum -| TambaraSum

PastroSum freely constructs strength with respect to Either.

Constructors

Instances6ProfunctorMonad, ProfunctorAdjunction, ProfunctorFunctor, Choice, Profunctor, Functor

Costrength

classclass Profunctor p => Cochoice (p :: Type -> Type -> Type) where
#

Methods

Instances12Cochoice, …
datadata CotambaraSum (q :: Type -> Type -> Type) a b where

CotambaraSum cofreely constructs costrength with respect to Either (aka Choice)

Constructors

Instances6ProfunctorComonad, ProfunctorAdjunction, ProfunctorFunctor, Cochoice, Profunctor, Functor
newtypenewtype CopastroSum (p :: Type -> Type -> Type) a b

CopastroSum -| CotambaraSum

CopastroSum freely constructs costrength with respect to Either (aka Choice)

Constructors

Instances6ProfunctorMonad, ProfunctorAdjunction, ProfunctorFunctor, Cochoice, Profunctor, Functor