HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.Singleton

Constructing singleton collections.

  • 3 classes
  • PackageAgda-2.8.0.2
  • Exports3
  • LanguageHaskell2010
  • LicenceMIT
  • SourceSingleton.hs
classclass (Semigroup coll, Monoid coll, Singleton el coll) => Collection el coll | coll -> el where
#

A create-only possibly empty collection is a monoid with the possibility to inject elements.

Methods

Instances16Collection, …
classclass (Null coll, Singleton el coll) => CMaybe el coll | coll -> el where
#

Create-only collection with at most one element.

Methods

Instances2CMaybe
  • CMaybe a (Maybe a)Defined in Agda-2.8.0.2 · Agda.Utils.Singleton
  • CMaybe a [a]Defined in Agda-2.8.0.2 · Agda.Utils.Singleton
classclass Singleton el coll | coll -> el where
#

Overloaded singleton constructor for collections.

Methods

Instances28Singleton, …