packages feed

brick 0.32 → 0.32.1

raw patch · 5 files changed

+21/−4 lines, 5 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Brick.Types: cursorLocationL :: forall n_asqS. Lens' (CursorLocation n_asqS) Location
+ Brick.Types: cursorLocationL :: forall n_asre. Lens' (CursorLocation n_asre) Location
- Brick.Types: cursorLocationNameL :: forall n_asqS n_asUt. Lens (CursorLocation n_asqS) (CursorLocation n_asUt) (Maybe n_asqS) (Maybe n_asUt)
+ Brick.Types: cursorLocationNameL :: forall n_asre n_asUP. Lens (CursorLocation n_asre) (CursorLocation n_asUP) (Maybe n_asre) (Maybe n_asUP)
- Brick.Types: cursorsL :: forall n_asqR. Lens' (Result n_asqR) [CursorLocation n_asqR]
+ Brick.Types: cursorsL :: forall n_asrd. Lens' (Result n_asrd) [CursorLocation n_asrd]
- Brick.Types: extentsL :: forall n_asqR. Lens' (Result n_asqR) [Extent n_asqR]
+ Brick.Types: extentsL :: forall n_asrd. Lens' (Result n_asrd) [Extent n_asrd]
- Brick.Types: imageL :: forall n_asqR. Lens' (Result n_asqR) Image
+ Brick.Types: imageL :: forall n_asrd. Lens' (Result n_asrd) Image
- Brick.Types: visibilityRequestsL :: forall n_asqR. Lens' (Result n_asqR) [VisibilityRequest]
+ Brick.Types: visibilityRequestsL :: forall n_asrd. Lens' (Result n_asrd) [VisibilityRequest]
- Brick.Widgets.Dialog: dialogButtonsL :: forall a_aQES a_aQFy. Lens (Dialog a_aQES) (Dialog a_aQFy) [(String, a_aQES)] [(String, a_aQFy)]
+ Brick.Widgets.Dialog: dialogButtonsL :: forall a_aQFe a_aQFU. Lens (Dialog a_aQFe) (Dialog a_aQFU) [(String, a_aQFe)] [(String, a_aQFU)]
- Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_aQES. Lens' (Dialog a_aQES) (Maybe Int)
+ Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_aQFe. Lens' (Dialog a_aQFe) (Maybe Int)
- Brick.Widgets.Dialog: dialogTitleL :: forall a_aQES. Lens' (Dialog a_aQES) (Maybe String)
+ Brick.Widgets.Dialog: dialogTitleL :: forall a_aQFe. Lens' (Dialog a_aQFe) (Maybe String)
- Brick.Widgets.Dialog: dialogWidthL :: forall a_aQES. Lens' (Dialog a_aQES) Int
+ Brick.Widgets.Dialog: dialogWidthL :: forall a_aQFe. Lens' (Dialog a_aQFe) Int
- Brick.Widgets.Edit: editContentsL :: forall t_aMhx n_aMhy t_aMif. Lens (Editor t_aMhx n_aMhy) (Editor t_aMif n_aMhy) (TextZipper t_aMhx) (TextZipper t_aMif)
+ Brick.Widgets.Edit: editContentsL :: forall t_aMhT n_aMhU t_aMiB. Lens (Editor t_aMhT n_aMhU) (Editor t_aMiB n_aMhU) (TextZipper t_aMhT) (TextZipper t_aMiB)
- Brick.Widgets.List: listElementsL :: forall n_aYEo e_aYEp e_aYP4. Lens (List n_aYEo e_aYEp) (List n_aYEo e_aYP4) (Vector e_aYEp) (Vector e_aYP4)
+ Brick.Widgets.List: listElementsL :: forall n_aYEK e_aYEL e_aYPq. Lens (List n_aYEK e_aYEL) (List n_aYEK e_aYPq) (Vector e_aYEL) (Vector e_aYPq)
- Brick.Widgets.List: listItemHeightL :: forall n_aYEo e_aYEp. Lens' (List n_aYEo e_aYEp) Int
+ Brick.Widgets.List: listItemHeightL :: forall n_aYEK e_aYEL. Lens' (List n_aYEK e_aYEL) Int
- Brick.Widgets.List: listNameL :: forall n_aYEo e_aYEp n_aYP5. Lens (List n_aYEo e_aYEp) (List n_aYP5 e_aYEp) n_aYEo n_aYP5
+ Brick.Widgets.List: listNameL :: forall n_aYEK e_aYEL n_aYPr. Lens (List n_aYEK e_aYEL) (List n_aYPr e_aYEL) n_aYEK n_aYPr
- Brick.Widgets.List: listSelectedL :: forall n_aYEo e_aYEp. Lens' (List n_aYEo e_aYEp) (Maybe Int)
+ Brick.Widgets.List: listSelectedL :: forall n_aYEK e_aYEL. Lens' (List n_aYEK e_aYEL) (Maybe Int)

Files

CHANGELOG.md view
@@ -2,6 +2,15 @@ Brick changelog --------------- +0.32.1+------++Bug fixes:+ * Core: make all text wrap widgets Greedy horizontally++Miscellaneous:+ * Dialog: clarify purpose in documentation (w.r.t. #149)+ 0.32 ---- 
brick.cabal view
@@ -1,5 +1,5 @@ name:                brick-version:             0.32+version:             0.32.1 synopsis:            A declarative terminal user interface library description:   Write terminal applications painlessly with 'brick'! You write an
docs/guide.rst view
@@ -440,7 +440,7 @@   cursor position.  For example, this widget requests a cursor placement on the first-"``o``" in "``foo``" associated with the cursor name "``myCursor``":+"``o``" in "``foo``" associated with the cursor name ``CustomName``:  .. code:: haskell @@ -456,7 +456,7 @@ .. code:: haskell     myApp = App { ...-               , appChooseCursor = showCursorNamed CustomName+               , appChooseCursor = \_ -> showCursorNamed CustomName                }  See the next section for more information on using names.
src/Brick/Widgets/Core.hs view
@@ -227,7 +227,7 @@ -- the available width using the specified wrapping settings. txtWrapWith :: WrapSettings -> T.Text -> Widget n txtWrapWith settings s =-    Widget Fixed Fixed $ do+    Widget Greedy Fixed $ do       c <- getContext       let theLines = fixEmpty <$> wrapTextToLines settings (c^.availWidthL) s           fixEmpty l | T.null l = " "
src/Brick/Widgets/Dialog.hs view
@@ -2,6 +2,14 @@ {-# LANGUAGE OverloadedStrings #-} -- | This module provides a simple dialog widget. You get to pick the -- dialog title, if any, as well as its body and buttons.+--+-- Note that this dialog is really for simple use cases where you want+-- to get the user's answer to a question, such as "Would you like+-- to save changes before quitting?" If you require something more+-- sophisticated, you'll need to build it yourself. You might also+-- consider seeing the 'Brick.Forms' module for help with input+-- management, and see the implementation of this module to see how to+-- reproduce a dialog-style UI. module Brick.Widgets.Dialog   ( Dialog   , dialogTitle