toxcore-0.2.12: A Tox protocol implementation in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Tox.DHT.Stamped

Synopsis

Documentation

type Stamped a = Map Timestamp [a] Source #

a collection of objects associated with a timestamp.

add :: Timestamp -> a -> Stamped a -> Stamped a Source #

add a timestamped object. There is no requirement that the stamp be later than that of previously added objects.

delete :: Eq a => Timestamp -> a -> Stamped a -> Stamped a Source #

findStamps :: (a -> Bool) -> Stamped a -> [Timestamp] Source #

getList :: Stamped a -> [a] Source #