Safe Haskell | None |
---|---|
Language | Haskell2010 |
Optics.Empty
Contents
Description
Documentation
class AsEmpty a where Source #
Class for types that may be _Empty
.
Minimal complete definition
Nothing
Instances
pattern Empty :: AsEmpty a => a Source #
Pattern synonym for matching on any type with an AsEmpty
instance.
>>>
case Nothing of { Empty -> True; _ -> False }
True
Orphan instances
AsEmpty ByteString Source # | |
Methods _Empty :: Prism' ByteString () Source # | |
AsEmpty ByteString Source # | |
Methods _Empty :: Prism' ByteString () Source # | |
AsEmpty Text Source # | |
AsEmpty Text Source # | |
AsEmpty (HashSet a) Source # | |
AsEmpty (Vector a) Source # | |
Storable a => AsEmpty (Vector a) Source # | |
Unbox a => AsEmpty (Vector a) Source # | |
AsEmpty (HashMap k a) Source # | |