Safe Haskell | None |
---|---|
Language | Haskell2010 |
This whole module is mostly copied from the hashtables package. You can find much better documentation there. Additionally, if you problem in the implementation of a function, you should probably open up the issue on the hashtables github repo since Gregory is the one who actually authored (and the one who actually understands) this code. The main differences are as follows:
Synopsis
- data MHashMap s k v
- new :: PrimMonad m => m (MHashMap (PrimState m) k v)
- newSized :: PrimMonad m => Int -> m (MHashMap (PrimState m) k v)
- delete :: (PrimMonad m, Hashable k, Eq k) => MHashMap (PrimState m) k v -> k -> m ()
- lookup :: (PrimMonad m, Eq k, Hashable k) => MHashMap (PrimState m) k v -> k -> m (Maybe v)
- insert :: (PrimMonad m, Eq k, Hashable k) => MHashMap (PrimState m) k v -> k -> v -> m ()
- mapM_ :: PrimMonad m => (k -> v -> m b) -> MHashMap (PrimState m) k v -> m ()
- foldM :: PrimMonad m => (a -> k -> v -> m a) -> a -> MHashMap (PrimState m) k v -> m a
- computeOverhead :: PrimMonad m => MHashMap (PrimState m) k v -> m Double