| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Proarrow.Promonad.Reader
Documentation
data Reader (r :: OPPOSITE k) (a :: k) (b :: k) where Source Github #
Constructors
| Reader :: forall {k} (a :: k) (b :: k) (r1 :: k). Ob a => ((r1 ** a) ~> b) -> Reader ('OP r1) a b |
Instances
| (Ob r, SelfAction k) => Strong k (Reader ('OP r) :: k -> k -> Type) Source Github # | |||||
| (Comonoid r, SelfAction k, SymMonoidal k) => MonoidalProfunctor (Reader ('OP r) :: k -> k -> Type) Source Github # | Note: This is only premonoidal, not monoidal, unless the comonoid is cocommutative. | ||||
| (Ob r, Monoidal k) => Profunctor (Reader ('OP r) :: k -> k -> Type) Source Github # | |||||
| (Ob r, Monoidal k) => Corepresentable (Reader ('OP r) :: k -> k -> Type) Source Github # | The coreader comonad given the Promonad instance.
Together with the | ||||
Defined in Proarrow.Promonad.Reader Methods coindex :: forall (a :: k) (b :: k). Reader ('OP r) a b -> (Reader ('OP r) %% a) ~> b Source Github # cotabulate :: forall (a :: k) (b :: k). Ob a => ((Reader ('OP r) %% a) ~> b) -> Reader ('OP r) a b Source Github # corepMap :: forall (a :: k) (b :: k). (a ~> b) -> (Reader ('OP r) %% a) ~> (Reader ('OP r) %% b) Source Github # | |||||
| (Ob r, SymMonoidal k, Closed k) => Representable (Reader ('OP r) :: k -> k -> Type) Source Github # | The reader monad given the Promonad instance. | ||||
Defined in Proarrow.Promonad.Reader Methods index :: forall (a :: k) (b :: k). Reader ('OP r) a b -> a ~> (Reader ('OP r) % b) Source Github # tabulate :: forall (b :: k) (a :: k). Ob b => (a ~> (Reader ('OP r) % b)) -> Reader ('OP r) a b Source Github # repMap :: forall (a :: k) (b :: k). (a ~> b) -> (Reader ('OP r) % a) ~> (Reader ('OP r) % b) Source Github # | |||||
| (Ob r, Monoidal k) => Proadjunction (Writer r :: k -> k -> Type) (Reader ('OP r) :: k -> k -> Type) Source Github # | |||||
| (SelfAction k, Ob a) => IsReader (Reader ('OP a) :: k -> k -> Type) Source Github # | |||||
Defined in Proarrow.Category.Equipment.Stateful Associated Types
| |||||
| (Comonoid r, SelfAction k) => Cotraversable (Reader ('OP r) :: k -> k -> Type) Source Github # | |||||
Defined in Proarrow.Promonad.Reader Methods cotraverse :: forall (p :: k +-> k). (DistributiveProfunctor p, Strong k p, SelfAction k) => (p :.: Reader ('OP r)) :~> (Reader ('OP r) :.: p) Source Github # | |||||
| (Comonoid r, Monoidal k) => Promonad (Reader ('OP r) :: k -> k -> Type) Source Github # | |||||
| (Monoid r, Monoidal k) => Procomonad (Reader ('OP r) :: k -> k -> Type) Source Github # | |||||
| Monoidal k => Functor (Reader :: OPPOSITE k -> k -> k -> Type) Source Github # | |||||
| type (Reader ('OP r) :: k -> k -> Type) %% (a :: k) Source Github # | |||||
| type (Reader ('OP r) :: k -> k -> Type) % (a :: k) Source Github # | |||||
| type WithWriter (Reader ('OP a) :: k -> k -> Type) Source Github # | |||||
Defined in Proarrow.Category.Equipment.Stateful | |||||
dayCounit :: forall {k} (r :: k). (Ob r, Cartesian k) => Day (Writer r) (Reader ('OP r)) ~> ((~>) :: CAT k) Source Github #