brick 0.41.4 → 0.41.5
raw patch · 3 files changed
+13/−4 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Brick.Widgets.List: listElementsL :: forall n_a1l6v e_a1l6w e_a1ljn. Lens (List n_a1l6v e_a1l6w) (List n_a1l6v e_a1ljn) (Vector e_a1l6w) (Vector e_a1ljn)
+ Brick.Widgets.List: listElementsL :: forall n_a1l8v e_a1l8w e_a1lln. Lens (List n_a1l8v e_a1l8w) (List n_a1l8v e_a1lln) (Vector e_a1l8w) (Vector e_a1lln)
- Brick.Widgets.List: listItemHeightL :: forall n_a1l6v e_a1l6w. Lens' (List n_a1l6v e_a1l6w) Int
+ Brick.Widgets.List: listItemHeightL :: forall n_a1l8v e_a1l8w. Lens' (List n_a1l8v e_a1l8w) Int
- Brick.Widgets.List: listNameL :: forall n_a1l6v e_a1l6w n_a1ljo. Lens (List n_a1l6v e_a1l6w) (List n_a1ljo e_a1l6w) n_a1l6v n_a1ljo
+ Brick.Widgets.List: listNameL :: forall n_a1l8v e_a1l8w n_a1llo. Lens (List n_a1l8v e_a1l8w) (List n_a1llo e_a1l8w) n_a1l8v n_a1llo
- Brick.Widgets.List: listSelectedL :: forall n_a1l6v e_a1l6w. Lens' (List n_a1l6v e_a1l6w) (Maybe Int)
+ Brick.Widgets.List: listSelectedL :: forall n_a1l8v e_a1l8w. Lens' (List n_a1l8v e_a1l8w) (Maybe Int)
Files
- CHANGELOG.md +9/−0
- brick.cabal +1/−1
- src/Brick/Main.hs +3/−3
CHANGELOG.md view
@@ -2,6 +2,15 @@ Brick changelog --------------- +0.41.5+------++Miscellaneous:+ * `suspendAndResume` now empties the rendering cache when returning to+ the rendering event loop. This ensures that the state returned by the+ `IO` action is rendered completely rather than relying on potentially+ stale cache entries.+ 0.41.4 ------
brick.cabal view
@@ -1,5 +1,5 @@ name: brick-version: 0.41.4+version: 0.41.5 synopsis: A declarative terminal user interface library description: Write terminal applications painlessly with 'brick'! You write an
src/Brick/Main.hs view
@@ -222,7 +222,7 @@ InternalSuspendAndResume newRS action -> do newAppState <- action newVty <- buildVty- run newVty newRS newAppState brickChan+ run newVty (newRS { renderCache = mempty }) newAppState brickChan emptyES = ES [] mempty emptyRS = RS M.empty mempty S.empty mempty mempty@@ -492,7 +492,7 @@ -- | Suspend the event loop, save the terminal state, and run the -- specified action. When it returns an application state value, restore--- the terminal state, redraw the application from the new state, and--- resume the event loop.+-- the terminal state, empty the rendering cache, redraw the application+-- from the new state, and resume the event loop. suspendAndResume :: IO s -> EventM n (Next s) suspendAndResume = return . SuspendAndResume