Safe Haskell | None |
---|---|
Language | Haskell2010 |
VolatileDB Index
Intended for qualified import > import qualified Ouroboros.Consensus.Storage.VolatileDB.Impl.Index as Index
Synopsis
- delete :: FileId -> Index blk -> Index blk
- elems :: Index blk -> [ FileInfo blk]
- empty :: Index blk
- insert :: FileId -> FileInfo blk -> Index blk -> Index blk
- lastFile :: Index blk -> Maybe ( FileId , FileInfo blk)
- lookup :: FileId -> Index blk -> Maybe ( FileInfo blk)
- toAscList :: Index blk -> [( FileId , FileInfo blk)]
- data Index blk
Documentation
opaque
Instances
Generic ( Index blk) Source # | |
StandardHash blk => NoThunks ( Index blk) Source # | |
type Rep ( Index blk) Source # | |
Defined in Ouroboros.Consensus.Storage.VolatileDB.Impl.Index
type
Rep
(
Index
blk) =
D1
('
MetaData
"Index" "Ouroboros.Consensus.Storage.VolatileDB.Impl.Index" "ouroboros-consensus-0.1.0.1-DT4Cvwf63DZKctsEvaJqCU" '
True
) (
C1
('
MetaCons
"Index" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"unIndex") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(
IntMap
(
FileInfo
blk)))))
|