Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
Nothing
Instances
Collection Int IntSet Source # | |
SmallSetElement a => Collection a (SmallSet a) Source # | |
Defined in Agda.Utils.Singleton | |
Collection a (Endo [a]) Source # | |
Defined in Agda.Utils.Singleton | |
Collection a (Seq a) Source # | |
Defined in Agda.Utils.Singleton | |
Ord a => Collection a (Set a) Source # | |
Defined in Agda.Utils.Singleton | |
Collection a (DList a) Source # | |
Defined in Agda.Utils.Singleton | |
(Eq a, Hashable a) => Collection a (HashSet a) Source # | |
Defined in Agda.Utils.Singleton | |
Collection a [a] Source # | |
Defined in Agda.Utils.Singleton | |
Collection a ([a] -> [a]) Source # | |
Defined in Agda.Utils.Singleton | |
Collection (Call cinfo) (CallGraph cinfo) Source # | |
Collection (Int, a) (IntMap a) Source # | |
Ord k => Collection (k, a) (Map k a) Source # | |
Defined in Agda.Utils.Singleton | |
(Eq k, Hashable k) => Collection (k, a) (HashMap k a) Source # | |
Defined in Agda.Utils.Singleton |
class (Null coll, Singleton el coll) => CMaybe el coll | coll -> el where Source #
Create-only collection with at most one element.
Nothing
class Singleton el coll | coll -> el where Source #
Overloaded singleton
constructor for collections.