packages feed

brick 0.64.1 → 0.64.2

raw patch · 7 files changed

+13/−9 lines, 7 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Brick.BorderMap: eBottomL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.BorderMap: eBottomL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.BorderMap: eLeftL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.BorderMap: eLeftL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.BorderMap: eRightL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.BorderMap: eRightL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.BorderMap: eTopL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.BorderMap: eTopL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.Types: bordersL :: forall n_axZ5. Lens' (Result n_axZ5) (BorderMap DynBorder)
+ Brick.Types: bordersL :: forall n_ay0K. Lens' (Result n_ay0K) (BorderMap DynBorder)
- Brick.Types: cursorLocationL :: forall n_awIW. Lens' (CursorLocation n_awIW) Location
+ Brick.Types: cursorLocationL :: forall n_awKB. Lens' (CursorLocation n_awKB) Location
- Brick.Types: cursorLocationNameL :: forall n_awIW n_ayCD. Lens (CursorLocation n_awIW) (CursorLocation n_ayCD) (Maybe n_awIW) (Maybe n_ayCD)
+ Brick.Types: cursorLocationNameL :: forall n_awKB n_ayEi. Lens (CursorLocation n_awKB) (CursorLocation n_ayEi) (Maybe n_awKB) (Maybe n_ayEi)
- Brick.Types: cursorsL :: forall n_axZ5. Lens' (Result n_axZ5) [CursorLocation n_axZ5]
+ Brick.Types: cursorsL :: forall n_ay0K. Lens' (Result n_ay0K) [CursorLocation n_ay0K]
- Brick.Types: eBottomL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.Types: eBottomL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.Types: eLeftL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.Types: eLeftL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.Types: eRightL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.Types: eRightL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.Types: eTopL :: forall a_acVX. Lens' (Edges a_acVX) a_acVX
+ Brick.Types: eTopL :: forall a_acXy. Lens' (Edges a_acXy) a_acXy
- Brick.Types: extentsL :: forall n_axZ5. Lens' (Result n_axZ5) [Extent n_axZ5]
+ Brick.Types: extentsL :: forall n_ay0K. Lens' (Result n_ay0K) [Extent n_ay0K]
- Brick.Types: imageL :: forall n_axZ5. Lens' (Result n_axZ5) Image
+ Brick.Types: imageL :: forall n_ay0K. Lens' (Result n_ay0K) Image
- Brick.Types: visibilityRequestsL :: forall n_axZ5. Lens' (Result n_axZ5) [VisibilityRequest]
+ Brick.Types: visibilityRequestsL :: forall n_ay0K. Lens' (Result n_ay0K) [VisibilityRequest]
- Brick.Widgets.Dialog: dialogButtonsL :: forall a_a1alG a_a1amk. Lens (Dialog a_a1alG) (Dialog a_a1amk) [(String, a_a1alG)] [(String, a_a1amk)]
+ Brick.Widgets.Dialog: dialogButtonsL :: forall a_a1anC a_a1aog. Lens (Dialog a_a1anC) (Dialog a_a1aog) [(String, a_a1anC)] [(String, a_a1aog)]
- Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_a1alG. Lens' (Dialog a_a1alG) (Maybe Int)
+ Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_a1anC. Lens' (Dialog a_a1anC) (Maybe Int)
- Brick.Widgets.Dialog: dialogTitleL :: forall a_a1alG. Lens' (Dialog a_a1alG) (Maybe String)
+ Brick.Widgets.Dialog: dialogTitleL :: forall a_a1anC. Lens' (Dialog a_a1anC) (Maybe String)
- Brick.Widgets.Dialog: dialogWidthL :: forall a_a1alG. Lens' (Dialog a_a1alG) Int
+ Brick.Widgets.Dialog: dialogWidthL :: forall a_a1anC. Lens' (Dialog a_a1anC) Int
- Brick.Widgets.Edit: editContentsL :: forall t_a14CC n_a14CD t_a14Dh. Lens (Editor t_a14CC n_a14CD) (Editor t_a14Dh n_a14CD) (TextZipper t_a14CC) (TextZipper t_a14Dh)
+ Brick.Widgets.Edit: editContentsL :: forall t_a14Ey n_a14Ez t_a14Fd. Lens (Editor t_a14Ey n_a14Ez) (Editor t_a14Fd n_a14Ez) (TextZipper t_a14Ey) (TextZipper t_a14Fd)
- Brick.Widgets.FileBrowser: fileBrowserEntryFilterL :: forall n_a1kyD. Lens' (FileBrowser n_a1kyD) (Maybe (FileInfo -> Bool))
+ Brick.Widgets.FileBrowser: fileBrowserEntryFilterL :: forall n_a1kC5. Lens' (FileBrowser n_a1kC5) (Maybe (FileInfo -> Bool))
- Brick.Widgets.FileBrowser: fileBrowserSelectableL :: forall n_a1kyD. Lens' (FileBrowser n_a1kyD) (FileInfo -> Bool)
+ Brick.Widgets.FileBrowser: fileBrowserSelectableL :: forall n_a1kC5. Lens' (FileBrowser n_a1kC5) (FileInfo -> Bool)
- Brick.Widgets.List: listElementsL :: forall n_a1fo3 t_a1fo4 e_a1fo5 t_a1fCa e_a1fCb. Lens (GenericList n_a1fo3 t_a1fo4 e_a1fo5) (GenericList n_a1fo3 t_a1fCa e_a1fCb) (t_a1fo4 e_a1fo5) (t_a1fCa e_a1fCb)
+ Brick.Widgets.List: listElementsL :: forall n_a1fqc t_a1fqd e_a1fqe t_a1fEj e_a1fEk. Lens (GenericList n_a1fqc t_a1fqd e_a1fqe) (GenericList n_a1fqc t_a1fEj e_a1fEk) (t_a1fqd e_a1fqe) (t_a1fEj e_a1fEk)
- Brick.Widgets.List: listItemHeightL :: forall n_a1fo3 t_a1fo4 e_a1fo5. Lens' (GenericList n_a1fo3 t_a1fo4 e_a1fo5) Int
+ Brick.Widgets.List: listItemHeightL :: forall n_a1fqc t_a1fqd e_a1fqe. Lens' (GenericList n_a1fqc t_a1fqd e_a1fqe) Int
- Brick.Widgets.List: listNameL :: forall n_a1fo3 t_a1fo4 e_a1fo5 n_a1fCc. Lens (GenericList n_a1fo3 t_a1fo4 e_a1fo5) (GenericList n_a1fCc t_a1fo4 e_a1fo5) n_a1fo3 n_a1fCc
+ Brick.Widgets.List: listNameL :: forall n_a1fqc t_a1fqd e_a1fqe n_a1fEl. Lens (GenericList n_a1fqc t_a1fqd e_a1fqe) (GenericList n_a1fEl t_a1fqd e_a1fqe) n_a1fqc n_a1fEl
- Brick.Widgets.List: listSelectedL :: forall n_a1fo3 t_a1fo4 e_a1fo5. Lens' (GenericList n_a1fo3 t_a1fo4 e_a1fo5) (Maybe Int)
+ Brick.Widgets.List: listSelectedL :: forall n_a1fqc t_a1fqd e_a1fqe. Lens' (GenericList n_a1fqc t_a1fqd e_a1fqe) (Maybe Int)

Files

CHANGELOG.md view
@@ -2,6 +2,14 @@ Brick changelog --------------- +0.64.2+------++Bug fixes:+ * `Brick.Themes.saveTheme` now correctly saves background colors (#338)+ * `Brick.Widgets.List.listMoveToEnd` now uses the correct destination+   index (#337)+ 0.64.1 ------ 
README.md view
@@ -78,6 +78,7 @@ | [`brewsage`](https://github.com/gerdreiss/brewsage#readme) | A TUI for Homebrew | | [`sandwich`](https://codedownio.github.io/sandwich/) | A test framework with a TUI interface | | [`youbrick`](https://github.com/florentc/youbrick) | A feed aggregator and launcher for Youtube channels |+| [`swarm`](https://github.com/byorgey/swarm/) | A 2D programming and resource gathering game |  These third-party packages also extend `brick`: 
brick.cabal view
@@ -1,5 +1,5 @@ name:                brick-version:             0.64.1+version:             0.64.2 synopsis:            A declarative terminal user interface library description:   Write terminal user interfaces (TUIs) painlessly with 'brick'! You
src/Brick/Focus.hs view
@@ -1,7 +1,5 @@ -- | This module provides a type and functions for handling focus rings -- of values.------ This interface is experimental. module Brick.Focus   ( FocusRing   , focusRing
src/Brick/Forms.hs view
@@ -3,10 +3,7 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE CPP #-} {-# LANGUAGE ScopedTypeVariables #-}--- | Note - This API is experimental and will probably change. Please--- try it out! Feedback is very much appreciated, and your patience in--- the face of breaking API changes is also appreciated! It's also worth--- bearing in mind that this API is designed to support a narrow range+-- | Note - this API is designed to support a narrow (but common!) set -- of use cases. If you find that you need more customization than this -- offers, then you will need to consider building your own layout and -- event handling for input fields.
src/Brick/Themes.hs view
@@ -405,7 +405,7 @@ attrToCustom :: Attr -> CustomAttr attrToCustom a =     CustomAttr { customFg    = Just $ attrForeColor a-               , customBg    = Just $ attrForeColor a+               , customBg    = Just $ attrBackColor a                , customStyle = case attrStyle a of                    SetTo s -> Just s                    _       -> Nothing
src/Brick/Widgets/List.hs view
@@ -253,7 +253,7 @@ listMoveToEnd :: (Foldable t, Splittable t)               => GenericList n t e               -> GenericList n t e-listMoveToEnd l = listMoveTo (length $ listElements l) l+listMoveToEnd l = listMoveTo (max 0 $ length (listElements l) - 1) l  -- | The top-level attribute used for the entire list. listAttr :: AttrName