streamly-0.10.1: Streaming, dataflow programming and declarative concurrency
Copyright(c) 2022 Composewell Technologies
LicenseBSD-3-Clause
Maintainerstreamly@composewell.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Streamly.Internal.Data.IsMap.HashMap

Description

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, Eq k) => IsMap (HashMap k) Source # 
Instance details

Associated Types

type Key (HashMap k)

Methods

mapEmpty :: HashMap k a

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

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

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

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

mapUnion :: HashMap k a -> HashMap k a -> HashMap k a

mapNull :: HashMap k a -> Bool

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