Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
This module defines PMap, a map with Text keys and cardinality options.
data
PMap (c :: Type -> Type) vgreskell Data.Greskell.PMap A property map, which has text keys and v values. c specifies the cardinality of each item, and should be an instance of NonEmptyLike. You can look up values from PMap using key types of PMapKey class.
-
greskell Data.Greskell.PMap A typed key for PMap.
-
greskell Data.Greskell.PMap PMapNoSuchKey :: Text -> PMapLookupExceptiongreskell Data.Greskell.PMap The PMap doesn't have the given key.
PMapParseError :: Text -> String -> PMapLookupExceptiongreskell Data.Greskell.PMap Failed to parse the value into the type that the PMapKey indicates. The Text is the key, and the String is the error message.
pMapDecribeError :: PMapLookupException -> Stringgreskell Data.Greskell.PMap Make a human-readable description on PMapLookupException.
pMapDelete :: forall (c :: Type -> Type) v . Text -> PMap c v -> PMap c vgreskell Data.Greskell.PMap Delete a key and all values associated with it.
pMapFromList :: forall (c :: Type -> Type) v . NonEmptyLike c => [(Text, v)] -> PMap c vgreskell Data.Greskell.PMap Make a PMap from list of entries.
pMapInsert :: forall (c :: Type -> Type) v . NonEmptyLike c => Text -> v -> PMap c v -> PMap c vgreskell Data.Greskell.PMap Insert a key-value pair to PMap. If it already has some items for that key, append method of the NonEmptyLike type c determines its behavior.