| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Proarrow.Category.Monoidal.Applicative
Documentation
class (Monoidal j, Monoidal k, Functor f) => Applicative (f :: j -> k) where Source Github #
Methods
pure :: forall (a :: j). ((Unit :: j) ~> a) -> (Unit :: k) ~> f a Source Github #
liftA2 :: forall (a :: j) (b :: j) (c :: j). (Ob a, Ob b) => ((a ** b) ~> c) -> (f a ** f b) ~> f c Source Github #
Instances
| Applicative NonEmpty Source Github # | |
| Applicative IO Source Github # | |
| Applicative Maybe Source Github # | |
| Applicative [] Source Github # | |
| Applicative (Either e :: Type -> Type) Source Github # | |
| Applicative f => Applicative (Prelude f :: Type -> Type) Source Github # | |
| Monoid a => Applicative ((,) a :: Type -> Type) Source Github # | |
| (Monoidal k, Functor f) => Applicative (Ap f :: k -> Type) Source Github # | |
| Applicative ((->) a :: Type -> Type) Source Github # | |
| (MonoidalProfunctor p, Comonoid x) => Applicative (FromProfunctor p x :: j -> Type) Source Github # | |
Defined in Proarrow.Category.Monoidal.Applicative | |
| (Applicative f, Monoidal k) => Applicative ('A :: k -> AP f k) Source Github # | |
Defined in Proarrow.Category.Instance.Ap | |
ap :: forall {j} {k} (f :: j -> k) (a :: j) (b :: j). (Applicative f, Closed j, Closed k, Ob a, Ob b) => f (a ~~> b) ~> (f a ~~> f b) Source Github #
class (Distributive j, Functor f) => Alternative (f :: j -> k) where Source Github #
Methods
empty :: forall (a :: j). Ob a => (Unit :: k) ~> f a Source Github #
alt :: forall (a :: j) (b :: j) (c :: j). (Ob a, Ob b) => ((a || b) ~> c) -> (f a ** f b) ~> f c Source Github #
Instances
| Alternative IO Source Github # | |
| Alternative Maybe Source Github # | |
| Alternative [] Source Github # | |
| Alternative f => Alternative (Prelude f :: Type -> Type) Source Github # | |
| (DistributiveProfunctor p, Distributive j, Comonoid ('COPR x)) => Alternative (FromProfunctor p x :: j -> Type) Source Github # | |
Defined in Proarrow.Category.Monoidal.Applicative | |