A type alias for a basic open addressing hash table using linear probing. See Data.HashTable.ST.Basic.
Modulehashtables-1.4.2Haskell2010
Data.HashTable.IO
This module provides wrappers in IO around the functions from Data.HashTable.Class.
This module exports three concrete hash table types, one for each hash table implementation in this package:
type BasicHashTable k v = IOHashTable (B.HashTable) k v
type CuckooHashTable k v = IOHashTable (Cu.HashTable) k v
type LinearHashTable k v = IOHashTable (L.HashTable) k vThe IOHashTable type can be thought of as a wrapper around a concrete
hashtable type, which sets the ST monad state type to PrimState IO,
a.k.a. RealWorld:
type IOHashTable tabletype k v = tabletype (PrimState IO) k vThis module provides stToIO wrappers around the hashtable functions (which
are in ST) to make it convenient to use them in IO. It is intended to be
imported qualified and used with a user-defined type alias, i.e.:
import qualified Data.HashTable.IO as H
type HashTable k v = H.CuckooHashTable k v
foo :: IO (HashTable Int Int)
foo = do
ht <- H.new
H.insert ht 1 1
return htEssentially, anywhere you see IOHashTable h k v in the type signatures
below, you can plug in any of BasicHashTable k v, CuckooHashTable k
v, or LinearHashTable k v.
- 4 types
- 15 values
- Packagehashtables-1.4.2
- Exports19
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceIO.hs
A type alias for the cuckoo hash table. See Data.HashTable.ST.Cuckoo.
A type alias for the linear hash table. See Data.HashTable.ST.Linear.
See the documentation for this function in new.
See the documentation for this function in newSized.
See the documentation for this function in insert.
See the documentation for this function in delete.
See the documentation for this function in lookup.
See the documentation for this function in mutate.
See the documentation for this function in mutateST.
See the documentation for this function in fromList.
See the documentation for this function in fromListWithSizeHint.
See the documentation for this function in toList.
See the documentation for this function in mapM_.
See the documentation for this function in foldM.
See the documentation for this function in computeOverhead.
See the documentation for this function in lookupIndex.
See the documentation for this function in nextByIndex.