brick 0.66 → 0.66.1
raw patch · 3 files changed
+21/−13 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Brick.Widgets.Dialog: dialogButtonsL :: forall a_a1f64 a_a1f6I. Lens (Dialog a_a1f64) (Dialog a_a1f6I) [(String, a_a1f64)] [(String, a_a1f6I)]
+ Brick.Widgets.Dialog: dialogButtonsL :: forall a_a1f7Z a_a1f8D. Lens (Dialog a_a1f7Z) (Dialog a_a1f8D) [(String, a_a1f7Z)] [(String, a_a1f8D)]
- Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_a1f64. Lens' (Dialog a_a1f64) (Maybe Int)
+ Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_a1f7Z. Lens' (Dialog a_a1f7Z) (Maybe Int)
- Brick.Widgets.Dialog: dialogTitleL :: forall a_a1f64. Lens' (Dialog a_a1f64) (Maybe String)
+ Brick.Widgets.Dialog: dialogTitleL :: forall a_a1f7Z. Lens' (Dialog a_a1f7Z) (Maybe String)
- Brick.Widgets.Dialog: dialogWidthL :: forall a_a1f64. Lens' (Dialog a_a1f64) Int
+ Brick.Widgets.Dialog: dialogWidthL :: forall a_a1f7Z. Lens' (Dialog a_a1f7Z) Int
- Brick.Widgets.Edit: editContentsL :: forall t_a19mz n_a19mA t_a19ne. Lens (Editor t_a19mz n_a19mA) (Editor t_a19ne n_a19mA) (TextZipper t_a19mz) (TextZipper t_a19ne)
+ Brick.Widgets.Edit: editContentsL :: forall t_a19ou n_a19ov t_a19p9. Lens (Editor t_a19ou n_a19ov) (Editor t_a19p9 n_a19ov) (TextZipper t_a19ou) (TextZipper t_a19p9)
- Brick.Widgets.FileBrowser: fileBrowserEntryFilterL :: forall n_a1ptx. Lens' (FileBrowser n_a1ptx) (Maybe (FileInfo -> Bool))
+ Brick.Widgets.FileBrowser: fileBrowserEntryFilterL :: forall n_a1pvs. Lens' (FileBrowser n_a1pvs) (Maybe (FileInfo -> Bool))
- Brick.Widgets.FileBrowser: fileBrowserSelectableL :: forall n_a1ptx. Lens' (FileBrowser n_a1ptx) (FileInfo -> Bool)
+ Brick.Widgets.FileBrowser: fileBrowserSelectableL :: forall n_a1pvs. Lens' (FileBrowser n_a1pvs) (FileInfo -> Bool)
- Brick.Widgets.List: listElementsL :: forall n_a1khC t_a1khD e_a1khE t_a1kvJ e_a1kvK. Lens (GenericList n_a1khC t_a1khD e_a1khE) (GenericList n_a1khC t_a1kvJ e_a1kvK) (t_a1khD e_a1khE) (t_a1kvJ e_a1kvK)
+ Brick.Widgets.List: listElementsL :: forall n_a1kjx t_a1kjy e_a1kjz t_a1kxE e_a1kxF. Lens (GenericList n_a1kjx t_a1kjy e_a1kjz) (GenericList n_a1kjx t_a1kxE e_a1kxF) (t_a1kjy e_a1kjz) (t_a1kxE e_a1kxF)
- Brick.Widgets.List: listItemHeightL :: forall n_a1khC t_a1khD e_a1khE. Lens' (GenericList n_a1khC t_a1khD e_a1khE) Int
+ Brick.Widgets.List: listItemHeightL :: forall n_a1kjx t_a1kjy e_a1kjz. Lens' (GenericList n_a1kjx t_a1kjy e_a1kjz) Int
- Brick.Widgets.List: listNameL :: forall n_a1khC t_a1khD e_a1khE n_a1kvL. Lens (GenericList n_a1khC t_a1khD e_a1khE) (GenericList n_a1kvL t_a1khD e_a1khE) n_a1khC n_a1kvL
+ Brick.Widgets.List: listNameL :: forall n_a1kjx t_a1kjy e_a1kjz n_a1kxG. Lens (GenericList n_a1kjx t_a1kjy e_a1kjz) (GenericList n_a1kxG t_a1kjy e_a1kjz) n_a1kjx n_a1kxG
- Brick.Widgets.List: listSelectedL :: forall n_a1khC t_a1khD e_a1khE. Lens' (GenericList n_a1khC t_a1khD e_a1khE) (Maybe Int)
+ Brick.Widgets.List: listSelectedL :: forall n_a1kjx t_a1kjy e_a1kjz. Lens' (GenericList n_a1kjx t_a1kjy e_a1kjz) (Maybe Int)
Files
- CHANGELOG.md +19/−11
- brick.cabal +1/−1
- src/Brick/Widgets/Core.hs +1/−1
CHANGELOG.md view
@@ -2,21 +2,29 @@ Brick changelog --------------- +0.66.1+------++Bug fixes:+ * `Brick.Widgets.Core.cached` no longer caches the visibility requests+ generated by the cached image. This fixes a bug where re-use of a+ cached rendering would cause undesired viewport scrolling of those+ requested regions into view when the cached renderings got re-used.+ 0.66 ---- New features:- * Added `Brick.Main.makeVisible`, a function to requeste- visible regions from `EventM`. This, together with- `Brick.Widgets.Core.reportExtent`, can be used to request that a- viewport be scrolled to make a specified named region visible on- the next redraw. The region must be known to the renderer with- `reportExtent` (or something that calls it, like `clickable`). Due to- the `Ord` constraint on some of the API calls required to implement- this, an `Ord` constraint on the resource name type (`n`) got- propagated to various places in the API. But that shouldn't present- a problem since other fundamental API calls already required that- instance.+ * Added `Brick.Main.makeVisible`, a function to request visible regions+ from `EventM`. This, together with `Brick.Widgets.Core.reportExtent`,+ can be used to request that a viewport be scrolled to make a+ specified named region visible on the next redraw. The region must be+ known to the renderer with `reportExtent` (or something that calls+ it, like `clickable`). Due to the `Ord` constraint on some of the API+ calls required to implement this, an `Ord` constraint on the resource+ name type (`n`) got propagated to various places in the API. But that+ shouldn't present a problem since other fundamental API calls already+ required that instance. 0.65.1 ------
brick.cabal view
@@ -1,5 +1,5 @@ name: brick-version: 0.66+version: 0.66.1 synopsis: A declarative terminal user interface library description: Write terminal user interfaces (TUIs) painlessly with 'brick'! You
src/Brick/Widgets/Core.hs view
@@ -1070,7 +1070,7 @@ Nothing -> do wResult <- render w clickables <- renderedClickables wResult- cacheUpdate n (clickables, wResult)+ cacheUpdate n (clickables, wResult & visibilityRequestsL .~ mempty) return wResult where -- Given the rendered result of a Widget, collect the list of "clickable" names