Loading...

Streamly.Internal.Data.IsMap.HashMap

Adds an orphan HashMap instance for the IsMap type class from streamly-core package. This is useful for various combinators that use a map type. We cannot define this in streamly-core as it adds several non-boot library dependencies on streamly-core.

Orphan instances

Hashable k => IsMap (HashMap k) Source # 
Instance details

Associated Types

type Key (HashMap k) Source #

Methods

mapEmpty :: HashMap k a Source #

mapAlterF :: Functor g => (Maybe a -> g (Maybe a)) -> Key (HashMap k) -> HashMap k a -> g (HashMap k a) Source #

mapLookup :: Key (HashMap k) -> HashMap k a -> Maybe a Source #

mapInsert :: Key (HashMap k) -> a -> HashMap k a -> HashMap k a Source #

mapDelete :: Key (HashMap k) -> HashMap k a -> HashMap k a Source #

mapUnion :: HashMap k a -> HashMap k a -> HashMap k a Source #

mapNull :: HashMap k a -> Bool Source #

mapTraverseWithKey :: Applicative t => (Key (HashMap k) -> a -> t b) -> HashMap k a -> t (HashMap k b) Source #