dynamic-graphs-0.1.0.3: Dynamic graph algorithms

Safe HaskellNone
LanguageHaskell2010

Data.Graph.Dynamic.Internal.HashTable

Description

This is a very simple wrapper around the hashtables library that uses PrimMonad rather than ST.

Synopsis

Documentation

type HashTable s k v = HashTable s k v Source #

new :: PrimMonad m => m (HashTable (PrimState m) k v) Source #

insert :: (Eq k, Hashable k, PrimMonad m) => HashTable (PrimState m) k v -> k -> v -> m () Source #

delete :: (Eq k, Hashable k, PrimMonad m) => HashTable (PrimState m) k v -> k -> m () Source #

lookup :: (Eq k, Hashable k, PrimMonad m) => HashTable (PrimState m) k v -> k -> m (Maybe v) Source #

toList :: PrimMonad m => HashTable (PrimState m) k v -> m [(k, v)] Source #

Slow, only for debugging and testing.