make-monofoldable-foldable-0.1.0.0: Make a MonoFoldable type into an ordinary Foldable type.

Safe HaskellNone
LanguageHaskell2010

Data.MonoTraversable.WrapMonoFoldable

Synopsis

Documentation

data WrappedMonoFoldable mono element where Source #

Turns any MonoFoldable into a Foldable type.

Constructors

WrappedMonoFoldable :: MonoFoldable mono => mono -> WrappedMonoFoldable mono (Element mono) 

Instances

Foldable (WrappedMonoFoldable mono) Source # 

Methods

fold :: Monoid m => WrappedMonoFoldable mono m -> m #

foldMap :: Monoid m => (a -> m) -> WrappedMonoFoldable mono a -> m #

foldr :: (a -> b -> b) -> b -> WrappedMonoFoldable mono a -> b #

foldr' :: (a -> b -> b) -> b -> WrappedMonoFoldable mono a -> b #

foldl :: (b -> a -> b) -> b -> WrappedMonoFoldable mono a -> b #

foldl' :: (b -> a -> b) -> b -> WrappedMonoFoldable mono a -> b #

foldr1 :: (a -> a -> a) -> WrappedMonoFoldable mono a -> a #

foldl1 :: (a -> a -> a) -> WrappedMonoFoldable mono a -> a #

toList :: WrappedMonoFoldable mono a -> [a] #

null :: WrappedMonoFoldable mono a -> Bool #

length :: WrappedMonoFoldable mono a -> Int #

elem :: Eq a => a -> WrappedMonoFoldable mono a -> Bool #

maximum :: Ord a => WrappedMonoFoldable mono a -> a #

minimum :: Ord a => WrappedMonoFoldable mono a -> a #

sum :: Num a => WrappedMonoFoldable mono a -> a #

product :: Num a => WrappedMonoFoldable mono a -> a #