Safe Haskell | None |
---|
This module defines the MonoidNull class and some of its instances.
- class Monoid m => MonoidNull m where
Documentation
class Monoid m => MonoidNull m whereSource
Extension of Monoid
that allows testing a value for equality with mempty
. The following law must hold:
null x == (x == mempty)
MonoidNull Ordering | |
MonoidNull () | |
MonoidNull All | |
MonoidNull Any | |
MonoidNull ByteString | |
MonoidNull ByteString | |
MonoidNull IntSet | |
MonoidNull Text | |
MonoidNull Text | |
MonoidNull ByteStringUTF8 | |
MonoidNull [x] | |
MonoidNull a => MonoidNull (Dual a) | |
(Num a, Eq a) => MonoidNull (Sum a) | |
(Num a, Eq a) => MonoidNull (Product a) | |
MonoidNull (First a) | |
MonoidNull (Last a) | |
Monoid a => MonoidNull (Maybe a) | |
MonoidNull (Seq a) | |
MonoidNull (IntMap v) | |
Ord a => MonoidNull (Set a) | |
MonoidNull (Vector a) | |
(MonoidNull a, MonoidNull b) => MonoidNull (a, b) | |
Ord k => MonoidNull (Map k v) |