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

Modulerebase-1.21.2Haskell2010

Rebase.Data.Profunctor.Choice

  • 4 types
  • 2 classes
  • 4 values
  • Packagerebase-1.21.2
  • Exports10
  • LanguageHaskell2010
  • LicenceMIT
  • SourceChoice.hs
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

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

Methods

Instances13Cochoice, …
newtypenewtype CopastroSum (p :: Type -> Type -> Type) a b
#

CopastroSum -| CotambaraSum

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

Constructors

Instances8ProfunctorMonad, ProfunctorAdjunction, ProfunctorFunctor, Cochoice, Profunctor, Invariant2, …
datadata CotambaraSum (q :: Type -> Type -> Type) a b where
#

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

Constructors

Instances8ProfunctorComonad, ProfunctorAdjunction, ProfunctorFunctor, Cochoice, Profunctor, Invariant2, …
datadata PastroSum (p :: Type -> Type -> Type) a b where
#

PastroSum -| TambaraSum

PastroSum freely constructs strength with respect to Either.

Constructors

Instances8ProfunctorMonad, ProfunctorAdjunction, ProfunctorFunctor, Choice, Profunctor, Invariant2, …
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

Instances9ProfunctorComonad, ProfunctorAdjunction, ProfunctorFunctor, Category, Choice, Profunctor, …