| Safe Haskell | Safe-Infered |
|---|
Data.Monoid.Null
Contents
Description
This module defines the MonoidNull class.
- class Monoid m => MonoidNull m where
Classes
class Monoid m => MonoidNull m whereSource
Extension of Monoid that allows testing a value for equality with mempty. The following law must hold:
mnull == (== mempty)
Instances
| MonoidNull ByteString | |
| MonoidNull Text | |
| MonoidNull [x] | |
| MonoidNull (First a) | |
| MonoidNull (Last a) | |
| Monoid a => MonoidNull (Maybe a) | |
| (MonoidNull a, MonoidNull b) => MonoidNull (a, b) |