HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Singleton

Constructing singleton collections.

  • 3 classes
  • PackageAgda-2.7.0.1
  • 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

Instances14Collection, …
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.7.0.1 · Agda.Utils.Singleton
  • CMaybe a [a]Defined in Agda-2.7.0.1 · Agda.Utils.Singleton
classclass Singleton el coll | coll -> el where
#

Overloaded singleton constructor for collections.

Methods

Instances25Singleton, …