Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
(&=&) :: Applicative p => (a -> p b) -> (a -> p c) -> a -> p (b, c) infixr 3 Source #
(*=*) :: Applicative p => (a1 -> p b1) -> (a2 -> p b2) -> (a1, a2) -> p (b1, b2) infixr 3 Source #
tripleK :: Applicative p => (a1 -> p b1) -> (a2 -> p b2) -> (a3 -> p b3) -> (a1, a2, a3) -> p (b1, b2, b3) Source #
liftA4 :: Applicative p => (a -> b -> c -> d -> e) -> p a -> p b -> p c -> p d -> p e Source #
compose3 :: (a' -> b' -> c' -> d) -> (a -> a') -> (b -> b') -> (c -> c') -> a -> b -> c -> d Source #
replicate :: Alternative f => Natural -> a -> f a Source #
replicateA :: (Applicative p, Alternative f) => Natural -> p a -> p (f a) Source #
Instances
Monad p => Monad (Ap p) Source # | |
Functor p => Functor (Ap p) Source # | |
Applicative p => Applicative (Ap p) Source # | |
Foldable p => Foldable (Ap p) Source # | |
Defined in Util fold :: Monoid m => Ap p m -> m # foldMap :: Monoid m => (a -> m) -> Ap p a -> m # foldr :: (a -> b -> b) -> b -> Ap p a -> b # foldr' :: (a -> b -> b) -> b -> Ap p a -> b # foldl :: (b -> a -> b) -> b -> Ap p a -> b # foldl' :: (b -> a -> b) -> b -> Ap p a -> b # foldr1 :: (a -> a -> a) -> Ap p a -> a # foldl1 :: (a -> a -> a) -> Ap p a -> a # elem :: Eq a => a -> Ap p a -> Bool # maximum :: Ord a => Ap p a -> a # | |
Traversable p => Traversable (Ap p) Source # | |
Eq1 p => Eq1 (Ap p) Source # | |
Ord1 p => Ord1 (Ap p) Source # | |
Read1 p => Read1 (Ap p) Source # | |
Show1 p => Show1 (Ap p) Source # | |
Alternative p => Alternative (Ap p) Source # | |
MonadPlus p => MonadPlus (Ap p) Source # | |
Bounded (p a) => Bounded (Ap p a) Source # | |
Enum (p a) => Enum (Ap p a) Source # | |
Defined in Util | |
Eq (p a) => Eq (Ap p a) Source # | |
Ord (p a) => Ord (Ap p a) Source # | |
Read (p a) => Read (Ap p a) Source # | |
Show (p a) => Show (Ap p a) Source # | |
(Applicative p, Semigroup a) => Semigroup (Ap p a) Source # | |
(Applicative p, Semigroup a, Monoid a) => Monoid (Ap p a) Source # | |
intercalate :: Semigroup a => a -> NonEmpty a -> a Source #
traverse2 :: (Traversable t, Applicative t, Applicative p) => (a -> b -> p c) -> t a -> t b -> p (t c) Source #
traverse3 :: (Traversable t, Applicative t, Applicative p) => (a -> b -> c -> p d) -> t a -> t b -> t c -> p (t d) Source #
foldMap3 :: (Foldable t, Applicative t, Monoid z) => (a -> b -> c -> z) -> t a -> t b -> t c -> z Source #
altMap :: (Alternative p, Foldable f) => (a -> p b) -> f a -> p b Source #
(<|) :: Alternative f => a -> f a -> f a infixl 3 Source #
(|>) :: Alternative f => f a -> a -> f a infixl 3 Source #
count :: (Traversable f, Enum n) => f a -> f (n, a) Source #
countFrom :: (Traversable f, Enum n) => n -> f a -> f (n, a) Source #
some :: Alternative p => p a -> p (NonEmpty a) Source #