crdt-10.3: Conflict-free replicated data types

Safe HaskellSafe
LanguageHaskell2010

Data.Empty

Synopsis

Documentation

class AsEmpty a where Source #

A type that may be empty. If your type does not have a special empty value, just wrap it into Maybe, it is free.

Based on Control.Lens.Empty.AsEmpty.

Minimal complete definition

empty

Methods

empty :: a Source #

isEmpty :: a -> Bool Source #

isEmpty :: Eq a => a -> Bool Source #

isNotEmpty :: a -> Bool Source #

isNotEmpty :: Eq a => a -> Bool Source #

Instances
AsEmpty Char Source # 
Instance details

Defined in Data.Empty

AsEmpty (Maybe a) Source # 
Instance details

Defined in Data.Empty