| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
BNFC.Utils.Singleton
Description
Constructing singleton collections.
Documentation
class (Semigroup coll, Monoid coll, Singleton el coll) => Collection el coll | coll -> el where Source #
A create-only possibly empty collection is a monoid with the possibility to inject elements.
Minimal complete definition
Nothing
Instances
| Ord a => Collection a (Set a) Source # | |
| Defined in BNFC.Utils.Singleton | |
| Collection a [a] Source # | |
| Defined in BNFC.Utils.Singleton | |
| Collection a ([a] -> [a]) Source # | |
| Defined in BNFC.Utils.Singleton | |
| Ord k => Collection (k, a) (Map k a) Source # | |
| Defined in BNFC.Utils.Singleton | |
class Singleton el coll | coll -> el where Source #
Overloaded singleton constructor for collections.
Instances
| Singleton a (Set a) Source # | |
| Defined in BNFC.Utils.Singleton | |
| Singleton a (NonEmpty a) Source # | |
| Defined in BNFC.Utils.Singleton | |
| Singleton a [a] Source # | |
| Defined in BNFC.Utils.Singleton | |
| Singleton a (Maybe a) Source # | |
| Defined in BNFC.Utils.Singleton | |
| Singleton a ([a] -> [a]) Source # | |
| Defined in BNFC.Utils.Singleton | |
| Singleton (k, a) (Map k a) Source # | |
| Defined in BNFC.Utils.Singleton | |