-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Tools for entity indexation -- -- A set of tools for indexing entities @package indexation @version 0.2 module Indexation.IndexTable data IndexTable entity lookup :: (Eq entity, Hashable entity) => entity -> IndexTable entity -> Maybe (Index entity) register :: (Eq entity, Hashable entity) => entity -> IndexTable entity -> (Index entity, IndexTable entity) empty :: (Eq entity, Hashable entity) => IndexTable entity module Indexation.Index newtype Index entity Index :: Int -> Index entity module Indexation.IO indexProduceToFiles :: (Eq entity, Hashable entity, Serialize entity) => FilePath -> FilePath -> Produce entity -> IO (Either IOException ()) readEntitiesAmountFromEntityTableFile :: FilePath -> IO (Either IOException Int) readEntityTableFromFile :: Serialize entity => FilePath -> IO (Either IOException (Either Text (EntityTable entity))) readIndexTableFromFile :: (Serialize entity, Eq entity, Hashable entity) => FilePath -> IO (Either IOException (Either Text (IndexTable entity))) module Indexation.EntityTable data EntityTable entity indexTable :: IndexTable entity -> EntityTable entity lookup :: Index entity -> EntityTable entity -> Maybe entity