| Portability | non-portable | 
|---|---|
| Stability | experimental | 
| Maintainer | Edward Kmett <ekmett@gmail.com> | 
| Safe Haskell | Trustworthy | 
Control.Lens.Internal.Fold
Contents
Description
- newtype  Folding f a = Folding {
- getFolding :: f a
 
 - newtype  Traversed a f = Traversed {
- getTraversed :: f a
 
 - newtype  Sequenced a m = Sequenced {
- getSequenced :: m a
 
 - data Max a
 - getMax :: Max a -> Maybe a
 - data Min a
 - getMin :: Min a -> Maybe a
 - data Leftmost a
 - getLeftmost :: Leftmost a -> Maybe a
 - data Rightmost a
 - getRightmost :: Rightmost a -> Maybe a
 
Monoids for folding
A Monoid for a Contravariant Applicative.
Constructors
| Folding | |
Fields 
  | |
Instances
| (Contravariant f, Applicative f) => Monoid (Folding f a) | |
| (Contravariant f, Apply f) => Semigroup (Folding f a) | 
Used internally by traverseOf_ and the like.
The argument a of the result should not be used!
Constructors
| Traversed | |
Fields 
  | |
Used internally by mapM_ and the like.
The argument a of the result should not be used!
Constructors
| Sequenced | |
Fields 
  | |
Used for maximumOf.
Used for minimumOf.
Used for preview.
getLeftmost :: Leftmost a -> Maybe aSource
Used for lastOf.