Safe Haskell | None |
---|---|
Language | Haskell2010 |
Agda.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
class (Null coll, Singleton el coll) => CMaybe el coll | coll -> el where Source #
Create-only collection with at most one element.
Minimal complete definition
Nothing
class Singleton el coll | coll -> el where Source #
Overloaded singleton
constructor for collections.