Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Backwards f a = Backwards {
- forwards :: f a
- (<**>) :: Applicative f => f a -> f (a -> b) -> f b
- liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c
Documentation
newtype Backwards f a Source #
The same functor, but with an Applicative
instance that performs
actions in the reverse order.
Instances
Functor f => Functor (Backwards f) Source # | Derived instance. |
Applicative f => Applicative (Backwards f) Source # | Apply |
Defined in Control.NumericalApplicative.Backwards | |
Foldable f => Foldable (Backwards f) Source # | Derived instance. |
Defined in Control.NumericalApplicative.Backwards fold :: Monoid m => Backwards f m -> m # foldMap :: Monoid m => (a -> m) -> Backwards f a -> m # foldr :: (a -> b -> b) -> b -> Backwards f a -> b # foldr' :: (a -> b -> b) -> b -> Backwards f a -> b # foldl :: (b -> a -> b) -> b -> Backwards f a -> b # foldl' :: (b -> a -> b) -> b -> Backwards f a -> b # foldr1 :: (a -> a -> a) -> Backwards f a -> a # foldl1 :: (a -> a -> a) -> Backwards f a -> a # toList :: Backwards f a -> [a] # null :: Backwards f a -> Bool # length :: Backwards f a -> Int # elem :: Eq a => a -> Backwards f a -> Bool # maximum :: Ord a => Backwards f a -> a # minimum :: Ord a => Backwards f a -> a # | |
Traversable f => Traversable (Backwards f) Source # | Derived instance. |
Defined in Control.NumericalApplicative.Backwards | |
Alternative f => Alternative (Backwards f) Source # | Try alternatives in the same order as |
(<**>) :: Applicative f => f a -> f (a -> b) -> f b Source #
liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c Source #