| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Proarrow.Promonad.Writer
Documentation
data Writer (w :: m) (a :: k) (b :: k) where Source Comments #
Constructors
| Writer :: forall {k} {m} (b :: k) (a :: k) (w :: m). Ob b => (a ~> Act w b) -> Writer w a b |
Instances
| (Ob w, MonoidalAction m k, SymMonoidal m) => Strong m (Writer w :: k -> k -> Type) Source Comments # | |||||
| (SymMonoidalAction m k, Ob a) => IsWriter m (Writer a :: k -> k -> Type) Source Comments # | |||||
Defined in Proarrow.Category.Equipment.Stateful Associated Types
| |||||
| (Monoid w, SelfAction k) => MonoidalProfunctor (Writer w :: k -> k -> Type) Source Comments # | Note: This is only premonoidal, not monoidal, unless the monoid is commutative. | ||||
| (Ob w, MonoidalAction m k) => Profunctor (Writer w :: k -> k -> Type) Source Comments # | |||||
| (Ob w, SelfAction k, CompactClosed k) => Corepresentable (Writer w :: k -> k -> Type) Source Comments # | The cowriter comonad given the Promonad instance. | ||||
Defined in Proarrow.Promonad.Writer Methods coindex :: forall (a :: k) (b :: k). Writer w a b -> ((Writer w :: k -> k -> Type) %% a) ~> b Source Comments # cotabulate :: forall (a :: k) (b :: k). Ob a => (((Writer w :: k -> k -> Type) %% a) ~> b) -> Writer w a b Source Comments # corepMap :: forall (a :: k) (b :: k). (a ~> b) -> ((Writer w :: k -> k -> Type) %% a) ~> ((Writer w :: k -> k -> Type) %% b) Source Comments # | |||||
| (Ob w, MonoidalAction m k) => Representable (Writer w :: k -> k -> Type) Source Comments # | The writer monad given the Promonad instance. | ||||
Defined in Proarrow.Promonad.Writer Methods index :: forall (a :: k) (b :: k). Writer w a b -> a ~> ((Writer w :: k -> k -> Type) % b) Source Comments # tabulate :: forall (b :: k) (a :: k). Ob b => (a ~> ((Writer w :: k -> k -> Type) % b)) -> Writer w a b Source Comments # repMap :: forall (a :: k) (b :: k). (a ~> b) -> ((Writer w :: k -> k -> Type) % a) ~> ((Writer w :: k -> k -> Type) % b) Source Comments # | |||||
| (Ob r, MonoidalAction m k) => Proadjunction (Writer r :: k -> k -> Type) (Reader ('OP r) :: k -> k -> Type) Source Comments # | |||||
| MonoidalAction m k => Functor (Writer :: m -> k -> k -> Type) Source Comments # | |||||
| (Monoid w, SelfAction k) => Traversable (Writer w :: k -> k -> Type) Source Comments # | |||||
| (Monoid w, MonoidalAction m k) => Promonad (Writer w :: k -> k -> Type) Source Comments # | |||||
| (Comonoid w, MonoidalAction m k) => Procomonad (Writer w :: k -> k -> Type) Source Comments # | |||||
| type WithReader m (Writer a :: k -> k -> Type) Source Comments # | |||||
Defined in Proarrow.Category.Equipment.Stateful | |||||
| type (Writer w :: k -> k -> Type) %% (a :: k) Source Comments # | |||||
Defined in Proarrow.Promonad.Writer | |||||
| type (Writer w :: k -> k -> Type) % (a :: k) Source Comments # | |||||
Defined in Proarrow.Promonad.Writer | |||||