Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Stamped a = Map Timestamp [a]
- empty :: Stamped a
- add :: Timestamp -> a -> Stamped a -> Stamped a
- delete :: Eq a => Timestamp -> a -> Stamped a -> Stamped a
- findStamps :: (a -> Bool) -> Stamped a -> [Timestamp]
- dropOlder :: Timestamp -> Stamped a -> Stamped a
- getList :: Stamped a -> [a]
- popFirst :: Stamped a -> (Maybe (Timestamp, a), Stamped a)