class (Foldable t) => Foldable1 (t :: Type -> Type)
Non-empty data structures that can be folded.
Instances define at least one of foldMap1 or foldrMap1.
fold1 :: (Semigroup m) => t m -> m
Given a structure with elements whose type is a Semigroup, combine
them via the semigroup's ( operator.<>)
foldMap1 :: (Semigroup m) => (a -> m) -> t a -> m
Map each element of the structure to a semigroup, and combine the results.
toNonEmpty :: t a -> NonEmpty a
List of elements of a structure, from left to right.