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