-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Pure Haskell key/value store implementation -- -- Pure Haskell key/value store implementation @package keyvaluehash @version 0.2.0.0 module Database.KeyValueHash type Key = ByteString type Value = ByteString data Size mkSize :: Word64 -> Size sizeLinear :: Size -> Word64 data HashFunction stdHash :: HashFunction mkHashFunc :: String -> (Key -> Word64) -> HashFunction data Database createDatabase :: FilePath -> HashFunction -> Size -> IO Database openDatabase :: FilePath -> HashFunction -> Size -> IO Database closeDatabase :: Database -> IO () withCreateDatabase :: FilePath -> HashFunction -> Size -> (Database -> IO a) -> IO a withOpenDatabase :: FilePath -> HashFunction -> Size -> (Database -> IO a) -> IO a readKey :: Database -> Key -> IO (Maybe Value) writeKey :: Database -> Key -> Value -> IO () deleteKey :: Database -> Key -> IO () instance Typeable FileAlreadyExists instance Show FileAlreadyExists instance Exception FileAlreadyExists instance Binary ValueHeader instance Binary FileRange instance Show Size