packages feed

brick 0.15.1 → 0.15.2

raw patch · 4 files changed

+10/−3 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Brick.Types: cursorLocationL :: forall n_ax9K. Lens' (CursorLocation n_ax9K) Location
+ Brick.Types: cursorLocationL :: forall n_ax9O. Lens' (CursorLocation n_ax9O) Location
- Brick.Types: cursorLocationNameL :: forall n_ax9K n_axNy. Lens (CursorLocation n_ax9K) (CursorLocation n_axNy) (Maybe n_ax9K) (Maybe n_axNy)
+ Brick.Types: cursorLocationNameL :: forall n_ax9O n_axNC. Lens (CursorLocation n_ax9O) (CursorLocation n_axNC) (Maybe n_ax9O) (Maybe n_axNC)
- Brick.Types: cursorsL :: forall n_ax6F. Lens' (Result n_ax6F) [CursorLocation n_ax6F]
+ Brick.Types: cursorsL :: forall n_ax6J. Lens' (Result n_ax6J) [CursorLocation n_ax6J]
- Brick.Types: extentsL :: forall n_ax6F. Lens' (Result n_ax6F) [Extent n_ax6F]
+ Brick.Types: extentsL :: forall n_ax6J. Lens' (Result n_ax6J) [Extent n_ax6J]
- Brick.Types: imageL :: forall n_ax6F. Lens' (Result n_ax6F) Image
+ Brick.Types: imageL :: forall n_ax6J. Lens' (Result n_ax6J) Image
- Brick.Types: visibilityRequestsL :: forall n_ax6F. Lens' (Result n_ax6F) [VisibilityRequest]
+ Brick.Types: visibilityRequestsL :: forall n_ax6J. Lens' (Result n_ax6J) [VisibilityRequest]
- Brick.Widgets.Dialog: dialogButtonsL :: forall a_a1kfA a_a1kga. Lens (Dialog a_a1kfA) (Dialog a_a1kga) [(String, a_a1kfA)] [(String, a_a1kga)]
+ Brick.Widgets.Dialog: dialogButtonsL :: forall a_a1kfj a_a1kfT. Lens (Dialog a_a1kfj) (Dialog a_a1kfT) [(String, a_a1kfj)] [(String, a_a1kfT)]
- Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_a1kfA. Lens' (Dialog a_a1kfA) (Maybe Int)
+ Brick.Widgets.Dialog: dialogSelectedIndexL :: forall a_a1kfj. Lens' (Dialog a_a1kfj) (Maybe Int)
- Brick.Widgets.Dialog: dialogTitleL :: forall a_a1kfA. Lens' (Dialog a_a1kfA) (Maybe String)
+ Brick.Widgets.Dialog: dialogTitleL :: forall a_a1kfj. Lens' (Dialog a_a1kfj) (Maybe String)
- Brick.Widgets.Dialog: dialogWidthL :: forall a_a1kfA. Lens' (Dialog a_a1kfA) Int
+ Brick.Widgets.Dialog: dialogWidthL :: forall a_a1kfj. Lens' (Dialog a_a1kfj) Int
- Brick.Widgets.Edit: editContentsL :: forall t_a1mh1 n_a1mh2. Lens' (Editor t_a1mh1 n_a1mh2) (TextZipper t_a1mh1)
+ Brick.Widgets.Edit: editContentsL :: forall t_a1mgN n_a1mgO. Lens' (Editor t_a1mgN n_a1mgO) (TextZipper t_a1mgN)
- Brick.Widgets.Edit: editDrawContentsL :: forall t_a1mh1 n_a1mh2. Lens' (Editor t_a1mh1 n_a1mh2) ([t_a1mh1] -> Widget n_a1mh2)
+ Brick.Widgets.Edit: editDrawContentsL :: forall t_a1mgN n_a1mgO. Lens' (Editor t_a1mgN n_a1mgO) ([t_a1mgN] -> Widget n_a1mgO)
- Brick.Widgets.List: listElementsL :: forall n_a1oYI e_a1oYJ e_a1p80. Lens (List n_a1oYI e_a1oYJ) (List n_a1oYI e_a1p80) (Vector e_a1oYJ) (Vector e_a1p80)
+ Brick.Widgets.List: listElementsL :: forall n_a1pgm e_a1pgn e_a1ppE. Lens (List n_a1pgm e_a1pgn) (List n_a1pgm e_a1ppE) (Vector e_a1pgn) (Vector e_a1ppE)
- Brick.Widgets.List: listItemHeightL :: forall n_a1oYI e_a1oYJ. Lens' (List n_a1oYI e_a1oYJ) Int
+ Brick.Widgets.List: listItemHeightL :: forall n_a1pgm e_a1pgn. Lens' (List n_a1pgm e_a1pgn) Int
- Brick.Widgets.List: listNameL :: forall n_a1oYI e_a1oYJ n_a1p81. Lens (List n_a1oYI e_a1oYJ) (List n_a1p81 e_a1oYJ) n_a1oYI n_a1p81
+ Brick.Widgets.List: listNameL :: forall n_a1pgm e_a1pgn n_a1ppF. Lens (List n_a1pgm e_a1pgn) (List n_a1ppF e_a1pgn) n_a1pgm n_a1ppF
- Brick.Widgets.List: listSelectedL :: forall n_a1oYI e_a1oYJ. Lens' (List n_a1oYI e_a1oYJ) (Maybe Int)
+ Brick.Widgets.List: listSelectedL :: forall n_a1pgm e_a1pgn. Lens' (List n_a1pgm e_a1pgn) (Maybe Int)

Files

CHANGELOG.md view
@@ -2,6 +2,14 @@ Brick changelog --------------- +0.15.2+------++Bug fixes:+* viewport: do not cull cursor locations on empty viewport contents+  (fixes #105)+* User guide CounterEvent type fix (thanks @diegospd)+ 0.15.1 ------ 
brick.cabal view
@@ -1,5 +1,5 @@ name:                brick-version:             0.15.1+version:             0.15.2 synopsis:            A declarative terminal user interface library description:   Write terminal applications painlessly with 'brick'! You write an
docs/guide.rst view
@@ -321,7 +321,7 @@    data CounterEvent = Counter Int  With this type declaration we can now use counter events in our app by-using the application type ``App s e CounterEvent``. To handle these+using the application type ``App s CounterEvent n``. To handle these events we'll just need to look for ``AppEvent`` values in the event handler: 
src/Brick/Widgets/Core.hs view
@@ -775,7 +775,6 @@           (0, 0) -> return $ translated & imageL .~ (V.charFill (c^.attrL) ' ' (c^.availWidthL) (c^.availHeightL))                                         & visibilityRequestsL .~ mempty                                         & extentsL .~ mempty-                                        & cursorsL .~ mempty           _ -> render $ cropToContext                       $ padBottom Max                       $ padRight Max