packages feed

byline 1.1.2 → 1.1.3

raw patch · 5 files changed

+37/−21 lines, 5 filesdep ~ansi-terminaldep ~freedep ~haskelinePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ansi-terminal, free, haskeline, optparse-applicative, relude, text

API changes (from Hackage documentation)

Files

CHANGES.md view
@@ -10,9 +10,22 @@    - Minor updates: -    - 1.1.0.1 (October 27, 2020): Limit `optparse-applicative` to 0.16.x-    - 1.1.1 (June 2, 2021): Build with GHC 9.0.1-    - 1.1.2 (January 20, 2023): Build with GHC 9.2.4 (thanks @Arraying)+    - 1.1.0.1 (October 27, 2020):++      Limit `optparse-applicative` to 0.16.x++    - 1.1.1 (June 2, 2021):++      Build with GHC 9.0.1++    - 1.1.2 (January 20, 2023):++      Build with GHC 9.2.4 (thanks @Arraying)++    - 1.1.3 (February 17, 2024):++      Update dependencies, build with GHC 9.6, 9.8, and 9.10 (thanks+      @GuillaumedeVolpiano).  ## 1.0 (July 27, 2020) 
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2015-2021 Peter J. Jones <pjones@devalot.com>+Copyright (c) 2015-2025 Peter J. Jones <pjones@devalot.com> All rights reserved.  Redistribution and use in source and binary forms, with or without
README.md view
@@ -13,7 +13,7 @@  The primary features of Byline include printing messages, prompting for input, and generating custom menus.  It was inspired by the-[highline] Ruby library and the [terminal library][] by Craig Roche.+[highline][] Ruby library and the [terminal library][] by Craig Roche.  ## Example Using `MonadByline` @@ -33,3 +33,8 @@ ```  ![Demo](doc/demo.png)++[ansi-terminal]: http://hackage.haskell.org/package/ansi-terminal+[haskeline]: https://hackage.haskell.org/package/haskeline+[highline]: https://github.com/JEG2/highline+[terminal library]: https://github.com/cdxr/terminal
byline.cabal view
@@ -1,17 +1,17 @@ cabal-version:      2.2 name:               byline-version:            1.1.2+version:            1.1.3 homepage:           https://github.com/pjones/byline bug-reports:        https://github.com/pjones/byline/issues license:            BSD-2-Clause license-file:       LICENSE author:             Peter Jones <pjones@devalot.com> maintainer:         Peter Jones <pjones@devalot.com>-copyright:          Copyright: (c) 2015-2023 Peter J. Jones+copyright:          Copyright: (c) 2015-2025 Peter J. Jones category:           System, User Interfaces build-type:         Simple stability:          stable-tested-with:        GHC ==8.10.7 || ==9.0.2 || ==9.2.5+tested-with:        GHC ==9.6 || ==9.8 || ==9.10 synopsis:   Library for creating command-line interfaces (colors, menus, etc.) @@ -46,8 +46,10 @@  -------------------------------------------------------------------------------- extra-source-files:-  CHANGES.md   examples/*.hs++extra-doc-files:+  CHANGES.md   README.md  --------------------------------------------------------------------------------@@ -95,18 +97,18 @@ -------------------------------------------------------------------------------- common dependencies   build-depends:-    , ansi-terminal         >=0.6  && <0.12+    , ansi-terminal         >=0.6  && <1.2     , attoparsec            >=0.13 && <0.15     , base                  >=4.9  && <5.0     , colour                ^>=2.3     , exceptions            >=0.8  && <0.11-    , free                  ^>=5.1-    , haskeline             >=0.8  && <0.8.3+    , free                  >=5.1  && <5.3+    , haskeline             >=0.8  && <0.8.4     , mtl                   >=2.1  && <2.4-    , optparse-applicative  ^>=0.17-    , relude                >=0.6  && <1.2+    , optparse-applicative  ^>=0.18+    , relude                >=0.6  && <1.3     , terminfo-hs           >=0.1  && <0.3-    , text                  >=0.11 && <2.1+    , text                  >=0.11 && <2.2    mixins:     base hiding (Prelude),
src/Byline/Shell.hs view
@@ -118,16 +118,12 @@       where         nameAndFlags opt =           case O.optMain opt of-            O.CmdReader _ cmds p -> (`map` cmds) $ \cmd ->-              ( toText cmd,-                maybe-                  []+            O.CmdReader _ cmds -> (`map` cmds) $ bimap+              toText                   ( O.infoParser                       >>> O.mapParser (const optnames)                       >>> concat                   )-                  (p cmd)-              )             _ -> mempty         optnames opt =           case O.optMain opt of