distributed-process-extras-0.2.1.1: Cloud Haskell Extras

Safe HaskellNone
LanguageHaskell98

Control.Distributed.Process.Extras.Internal.Containers.MultiMap

Synopsis

Documentation

data MultiMap k v Source

Opaque type of MultiMaps.

Instances

class (Eq a, Hashable a) => Insertable a Source

Class of things that can be inserted in a map or a set (of mapped values), for which instances of Eq and Hashable must be present.

Instances

insert :: forall k v. (Insertable k, Insertable v) => k -> v -> MultiMap k v -> MultiMap k v Source

member :: Insertable k => k -> MultiMap k a -> Bool Source

lookup :: Insertable k => k -> MultiMap k v -> Maybe [v] Source

filter :: forall k v. Insertable k => (v -> Bool) -> MultiMap k v -> MultiMap k v Source

filterWithKey :: forall k v. Insertable k => (k -> v -> Bool) -> MultiMap k v -> MultiMap k v Source

toList :: MultiMap k v -> [(k, v)] Source