perfect-hash-generator-0.2.0.4: Perfect minimal hashing implementation in native Haskell

Safe HaskellNone
LanguageHaskell2010

Data.PerfectHash.TestUtils

Description

This module is not used by the main library for constructing perfect hashes; it just provides convenience functions for use by the tests and demonstration executables.

Synopsis

Documentation

testLookups :: (Show b, Eq b, Show a, ToHashableChunks a, Unbox b) => LookupTable b -> [(a, b)] -> Either String () Source #

wordsFromFile :: FilePath -> IO [(String, Int)] Source #

Generate a map of words from a file to their line numbers.

Intended for use with "usrsharedictwords".