Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (HasProducts j, HasProducts k, Functor f) => Applicative (f :: j -> k) where Source Comments #
pure :: forall (a :: j). El a -> El (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 Maybe Source Comments # | |
Applicative [] Source Comments # | |
Monoid a => Applicative ((,) a :: Type -> Type) Source Comments # | |
Applicative f => Applicative (Prelude f :: Type -> Type) Source Comments # | |
(HasProducts k, Functor f) => Applicative (Ap f :: k -> Type) Source Comments # | |
Applicative ((->) a :: Type -> Type) Source Comments # | |
(MonoidalProfunctor p, Ob x, Cartesian j, Cartesian k) => Applicative (FromProfunctor p x :: j -> Type) Source Comments # | |
Defined in Proarrow.Category.Monoidal.Applicative pure :: forall (a :: j). El a -> El (FromProfunctor p x a) Source Comments # liftA2 :: forall (a :: j) (b :: j) (c :: j). (Ob a, Ob b) => ((a && b) ~> c) -> (FromProfunctor p x a && FromProfunctor p x b) ~> FromProfunctor p x c Source Comments # |
class (HasCoproducts j, Applicative f) => Alternative (f :: j -> k) where Source Comments #
empty :: forall (a :: j). Ob a => El (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 [] Source Comments # | |
Alternative f => Alternative (Prelude f :: Type -> Type) Source Comments # | |