| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Proto3.Wire.FoldR
Description
Presents right-associative folds as Foldable sequences.
Documentation
newtype FoldR (a :: TYPE r) Source #
Presents a right-associative fold as a Foldable sequence.
Similar to the FRList example in the documentation for Data.Foldable,
but for generality the element type may be unlifted. For compatibility
with the Foldable type class and to avoid limitations on runtime
representation polymorphism, the fold supports only lifted results.
Constructors
| FoldR | |
Fields
| |
Instances
| Foldable (FoldR :: Type -> Type) Source # | |
Defined in Proto3.Wire.FoldR Methods fold :: Monoid m => FoldR m -> m # foldMap :: Monoid m => (a -> m) -> FoldR a -> m # foldMap' :: Monoid m => (a -> m) -> FoldR a -> m # foldr :: (a -> b -> b) -> b -> FoldR a -> b # foldr' :: (a -> b -> b) -> b -> FoldR a -> b # foldl :: (b -> a -> b) -> b -> FoldR a -> b # foldl' :: (b -> a -> b) -> b -> FoldR a -> b # foldr1 :: (a -> a -> a) -> FoldR a -> a # foldl1 :: (a -> a -> a) -> FoldR a -> a # elem :: Eq a => a -> FoldR a -> Bool # maximum :: Ord a => FoldR a -> a # minimum :: Ord a => FoldR a -> a # | |
| Functor (FoldR :: Type -> Type) Source # | |
| IsList (FoldR a) Source # | |
| Read a => Read (FoldR a) Source # | |
| Show a => Show (FoldR a) Source # | |
| Eq a => Eq (FoldR a) Source # | |
| Ord a => Ord (FoldR a) Source # | |
| type Item (FoldR a) Source # | |
Defined in Proto3.Wire.FoldR | |