monoid-subclasses-0.1: Subclasses of Monoid

Safe HaskellNone

Data.Monoid.Null

Description

This module defines the MonoidNull class and some of its instances.

Synopsis

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)

Methods

null :: m -> BoolSource