Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Transform input output
- newtype Index entity = Index Int
- data Indexer entity
- data EntityTable entity
- data ReindexTable entity
- index :: (Eq entity, Hashable entity) => Indexer entity -> Transform entity (Index entity)
- reindex :: ReindexTable entity -> Transform (Index entity) (Index entity)
- lookup :: EntityTable entity -> Transform (Index entity) (Maybe entity)
Documentation
Instances
data EntityTable entity Source #
Instances
Serialize entity => Serialize (EntityTable entity) # | |
Defined in Indexation.Instances.Cereal put :: Putter (EntityTable entity) # get :: Get (EntityTable entity) # |
data ReindexTable entity Source #
Map from old to new indices.