Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides an analog of Applicative
over arity-1 type constructors.
Synopsis
- class Functor10 f => Applicative10 f where
- (<*!) :: Applicative10 f => f m -> f n -> f m
- (*>!) :: Applicative10 f => f m -> f n -> f n
- liftA310 :: Applicative10 f => (forall a. m a -> n a -> o a -> p a) -> f m -> f n -> f o -> f p
- newtype (m :->: n) a = Arr10 {
- runArr10 :: m a -> n a
- pure10C :: forall c f m. (Entails (Index10 f) c, Applicative10 f, Functor10WithIndex f) => (forall a. c a => m a) -> f m
- liftA210C :: forall c f m n o. (Entails (Index10 f) c, Applicative10 f, Functor10WithIndex f) => (forall a. c a => m a -> n a -> o a) -> f m -> f n -> f o
- liftA310C :: forall c f m n o p. (Entails (Index10 f) c, Applicative10 f, Functor10WithIndex f) => (forall a. c a => m a -> n a -> o a -> p a) -> f m -> f n -> f o -> f p
Documentation
class Functor10 f => Applicative10 f where Source #
Applicative
over arity-1 type constructors.
See also Functor10
and Foldable10
.
pure10 :: (forall a. m a) -> f m Source #
Lift a parametric m
value into an f m
.
(<*>!) :: f (m :->: n) -> f m -> f n infixl 4 Source #
(<*>
) for Applicative10
: zip two f
s with runArr10
.
liftA210 :: (forall a. m a -> n a -> o a) -> f m -> f n -> f o Source #
liftA2
for Applicative10
: zip two f
s with a
parametric function.
Instances
(<*!) :: Applicative10 f => f m -> f n -> f m infixl 4 Source #
(<*
) for Applicative10
.
(*>!) :: Applicative10 f => f m -> f n -> f n infixl 4 Source #
(*>
) for Applicative10
.
liftA310 :: Applicative10 f => (forall a. m a -> n a -> o a -> p a) -> f m -> f n -> f o -> f p Source #
liftA3
for Applicative10
.
A function m a -> n a
wrapped in a newtype for use as a type parameter.
This is used to represent the partially-applied functions in the left side
of (<*>!
).
pure10C :: forall c f m. (Entails (Index10 f) c, Applicative10 f, Functor10WithIndex f) => (forall a. c a => m a) -> f m Source #
pure10
with access to an instance for every element.
liftA210C :: forall c f m n o. (Entails (Index10 f) c, Applicative10 f, Functor10WithIndex f) => (forall a. c a => m a -> n a -> o a) -> f m -> f n -> f o Source #
liftA210
with access to an instance for every element.
liftA310C :: forall c f m n o p. (Entails (Index10 f) c, Applicative10 f, Functor10WithIndex f) => (forall a. c a => m a -> n a -> o a -> p a) -> f m -> f n -> f o -> f p Source #
liftA310
with access to an instance for every element.