Safe Haskell | None |
---|---|
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 # | |
(Eq a, Hashable a) => Collection a (HashSet a) Source # | |
Defined in Agda.Utils.Singleton | |
Ord a => Collection a (Set a) Source # | |
Defined in Agda.Utils.Singleton | |
Collection a (Seq a) Source # | |
Defined in Agda.Utils.Singleton | |
Collection a (Endo [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 # | |
(Eq k, Hashable k) => Collection (k, a) (HashMap k a) Source # | |
Defined in Agda.Utils.Singleton | |
Ord k => Collection (k, a) (Map k a) Source # | |
Defined in Agda.Utils.Singleton |
class Singleton el coll | coll -> el where Source #
Overloaded singleton
constructor for collections.