Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class AppendSemigroup sh =>
AppendMonoid shcomfort-array Data.Array.Comfort.Shape No documentation available.
commutativeMonoidLaws :: (Monoid a, Eq a, Arbitrary a, Show a) => Proxy a -> Lawsquickcheck-classes-base Test.QuickCheck.Classes.Base Tests the following properties:
- Commutative mappend a b ≡ mappend b a
semigroupMonoidLaws :: (Semigroup a, Monoid a, Eq a, Arbitrary a, Show a) => Proxy a -> Lawsquickcheck-classes-base Test.QuickCheck.Classes.Base No documentation available.
-
relude Relude.Monoid Provide a Semigroup for an arbitrary Monoid. NOTE: This is not needed anymore since Semigroup became a superclass of Monoid in base-4.11 and this newtype be deprecated at some point in the future.
maybeToMonoid :: Monoid m => Maybe m -> mrelude Relude.Monoid Extracts Monoid value from Maybe returning mempty if Nothing.
>>> maybeToMonoid (Just [1,2,3] :: Maybe [Int]) [1,2,3] >>> maybeToMonoid (Nothing :: Maybe [Int]) []
stimesIdempotentMonoid :: (Integral b, Monoid a) => b -> a -> arelude Relude.Monoid This is a valid definition of stimes for an idempotent Monoid. When x <> x = x, this definition should be preferred, because it works in <math> rather than <math>
stimesMonoid :: (Integral b, Monoid a) => b -> a -> arelude Relude.Monoid This is a valid definition of stimes for a Monoid. Unlike the default definition of stimes, it is defined for 0 and so it should be preferred where possible.
WrapMonoid :: m -> WrappedMonoid mbase-compat-batteries Data.Semigroup.Compat No documentation available.
-
base-compat-batteries Data.Semigroup.Compat Provide a Semigroup for an arbitrary Monoid. NOTE: This is not needed anymore since Semigroup became a superclass of Monoid in base-4.11 and this newtype be deprecated at some point in the future.
stimesIdempotentMonoid :: (Integral b, Monoid a) => b -> a -> abase-compat-batteries Data.Semigroup.Compat This is a valid definition of stimes for an idempotent Monoid. When x <> x = x, this definition should be preferred, because it works in <math> rather than <math>