packages feed

brick 0.37 → 0.37.1

raw patch · 3 files changed

+12/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Brick.Forms: renderFormFieldState :: (Eq n) => FocusRing n -> FormFieldState s e n -> Widget n

Files

CHANGELOG.md view
@@ -2,6 +2,12 @@ Brick changelog --------------- +0.37.1+------++API changes:+ * Exposed `Brick.Forms.renderFormFieldState`.+ 0.37 ---- 
brick.cabal view
@@ -1,5 +1,5 @@ name:                brick-version:             0.37+version:             0.37.1 synopsis:            A declarative terminal user interface library description:   Write terminal applications painlessly with 'brick'! You write an
src/Brick/Forms.hs view
@@ -51,6 +51,7 @@   , formState   , handleFormEvent   , renderForm+  , renderFormFieldState   , (@@=)   , allFieldsValid   , invalidFields@@ -540,6 +541,10 @@ renderForm (Form es fr _ concatAll) =     concatAll $ renderFormFieldState fr <$> es +-- | Render a single form field collection. This is called internally by+-- 'renderForm' but is exposed in cases where a form field state needs+-- to be rendered outside of a 'Form', so 'renderForm' is probably what+-- you want. renderFormFieldState :: (Eq n)                      => FocusRing n                      -> FormFieldState s e n