Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Empty
Synopsis
- class AsEmpty a where
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
Methods
isEmpty :: Eq a => a -> Bool Source #
isNotEmpty :: a -> Bool Source #
isNotEmpty :: Eq a => a -> Bool Source #