@@ -56,15 +56,16 @@ type Block = Producer BlockState BarIO
typePushBlock=BlockPushMode
-- |Block that generates an update on 'yield'. Should only be pulled when an update is required.
typePullBlock=BlockPullMode
-- |Cached block. Always 'yield's the latest update, so it should only be pulled when the bar is rendered.
typeCachedBlock=BlockCachedMode
classIsCachableBlockawhere
toCachedBlock::a->CachedBlock
-- |Cache that holds multipleBlockStates. When iterated it always immediately 'yield's the latest update, so it should only be pulled when a bar update has been requested.
typeBlockCache=ProducerBlockStateBarIOCachedMode
instanceIsCachableBlockPushBlockwhere
classIsCachableawhere
toCachedBlock::a->BlockCache
instanceIsCachablePushBlockwhere
toCachedBlock=cachePushBlock
instanceIsCachableBlockCachedBlockwhere
instanceIsCachableBlockCachewhere
toCachedBlock=id
classIsBlockModeawhere
...
...
@@ -73,15 +74,16 @@ instance IsBlockMode PushMode where