indexation-0.4.2: Tools for entity indexation

Safe HaskellNone
LanguageHaskell2010

Indexation.Data

Documentation

newtype Index entity Source #

Constructors

Index Int 
Instances
Eq (Index a) # 
Instance details

Defined in Indexation.Instances

Methods

(==) :: Index a -> Index a -> Bool #

(/=) :: Index a -> Index a -> Bool #

Ord (Index a) # 
Instance details

Defined in Indexation.Instances

Methods

compare :: Index a -> Index a -> Ordering #

(<) :: Index a -> Index a -> Bool #

(<=) :: Index a -> Index a -> Bool #

(>) :: Index a -> Index a -> Bool #

(>=) :: Index a -> Index a -> Bool #

max :: Index a -> Index a -> Index a #

min :: Index a -> Index a -> Index a #

Show (Index a) # 
Instance details

Defined in Indexation.Instances

Methods

showsPrec :: Int -> Index a -> ShowS #

show :: Index a -> String #

showList :: [Index a] -> ShowS #

Serialize (Index a) # 
Instance details

Defined in Indexation.Instances.Cereal

Methods

put :: Putter (Index a) #

get :: Get (Index a) #

Hashable (Index a) # 
Instance details

Defined in Indexation.Instances

Methods

hashWithSalt :: Int -> Index a -> Int #

hash :: Index a -> Int #

data EntityTable entity Source #

Instances
Serialize entity => Serialize (EntityTable entity) # 
Instance details

Defined in Indexation.Instances.Cereal

Methods

put :: Putter (EntityTable entity) #

get :: Get (EntityTable entity) #

data IndexTable entity Source #

Instances
(Serialize entity, Eq entity, Hashable entity) => Serialize (IndexTable entity) # 
Instance details

Defined in Indexation.Instances.Cereal

Methods

put :: Putter (IndexTable entity) #

get :: Get (IndexTable entity) #

data Indexer entity Source #

lookupEntity :: Index entity -> EntityTable entity -> Maybe entity Source #

lookupIndex :: (Eq entity, Hashable entity) => entity -> IndexTable entity -> Maybe (Index entity) Source #