indexation-0.4.2: Tools for entity indexation

Safe HaskellNone
LanguageHaskell2010

Indexation.Potoki.Transform

Documentation

data Transform input output #

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 Indexer entity Source #

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) #

index :: (Eq entity, Hashable entity) => Indexer entity -> Transform entity (Index entity) Source #

lookup :: EntityTable entity -> Transform (Index entity) (Maybe entity) Source #