Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pattern
Singleton :: forall a (f :: Type -> Type) . a -> OneOrMoreApp ('SetApp f (Singleton a))type-set Data.OneOrMoreApp No documentation available.
module Math.NumberTheory.Moduli.
Singleton Singleton data types.
-
registry Data.Registry.Internal.Cache No documentation available.
-
Constructing singleton collections.
class
Singleton el coll | coll -> elAgda Agda.Utils.Singleton Overloaded singleton constructor for collections.
singletonM :: a -> ST s (Array a)unordered-containers Data.HashMap.Internal.Array No documentation available.
singletonCCSLbl :: CostCentre -> G Identghc GHC.StgToJS.Profiling No documentation available.
singletonMap :: IsMap map => ContainerKey map -> MapValue map -> mapmono-traversable Data.Containers Create a map from a single key-value pair.
singletonSet :: IsSet set => Element set -> setmono-traversable Data.Containers Create a set from a single element.
-
Basic singleton types and definitions singletons contains the basic types and definitions needed to support dependently typed programming techniques in Haskell. This library was originally presented in Dependently Typed Programming with Singletons, published at the Haskell Symposium, 2012. (https://richarde.dev/papers/2012/singletons/paper.pdf) singletons is intended to be a small, foundational library on which other projects can build. As such, singletons has a minimal dependency footprint and supports GHCs dating back to GHC 8.0. For more information, consult the singletons README. You may also be interested in the following related libraries:
- The singletons-th library defines Template Haskell functionality that allows promotion of term-level functions to type-level equivalents and singling functions to dependently typed equivalents.
- The singletons-base library uses singletons-th to define promoted and singled functions from the base library, including the Prelude.