module Relude.Monoid
( module Data.Monoid
, module Data.Semigroup
, maybeToMonoid
) where
import Data.Monoid (All (..), Alt (..), Any (..), Dual (..), Endo (..), First (..), Last (..),
Monoid (..), Product (..), Sum (..))
import Data.Semigroup (Option (..), Semigroup (sconcat, stimes, (<>)), WrappedMonoid, cycle1,
mtimesDefault, stimesIdempotent, stimesIdempotentMonoid, stimesMonoid)
import Relude.Monad.Reexport (Maybe, fromMaybe)
maybeToMonoid :: Monoid m => Maybe m -> m
maybeToMonoid = fromMaybe mempty