HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-9.10.3GHC2021

GHC.Types.Unique.Map

  • 1 type
  • 39 values
  • Packageghc-9.10.3
  • Exports40
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceMap.hs
newtypenewtype UniqMap k a
#

Maps indexed by Uniquable keys

Constructors

Instances8Functor, Eq, Data, Semigroup, Monoid, NFData, …
valueaddToUniqMap_L
  1. :: Uniquable k
  2. => k -> a -> a -> a
  3. -> k
  4. -> a
  5. -> UniqMap k a
  6. -> (Maybe a, UniqMap k a)
#

Add an element, returns previous lookup result and new map. If old element doesn't exist, add the passed element directly, otherwise compute the element to add using the passed function.