packages feed

vty 6.4 → 6.6

raw patch · 5 files changed

Files

CHANGELOG.md view
@@ -1,4 +1,21 @@ +6.6+---++* Added support for horizontal scrolling inputs. The `Button` type in+  `Graphics.Vty.Input.Events` got new constructors `BScrollLeft` and+  `BScrollRight` for Vty backend implementations that support horizontal+  scrolling inputs.++6.5+---++* Raised upper bound on `microlens` dependency to permit builds against+  0.5.+* Fixed the `utf8-string` dependency lower bound to account for an added+  module in 0.3.1. (#279)+* Improved the allocation behavior of `swapSkipsForSingleColumnCharSpan`.+ 6.4 --- 
README.md view
@@ -148,14 +148,18 @@ If you decide to contribute, that's great! Here are some guidelines you should consider to make submitting patches easier for all concerned: - - Please ensure that the examples and test suites build along with the-   library by running `build.sh` in the repository.+ - Patches written completely or partially by AI are unlikely to be+   accepted. Please disclose any AI use.  - If you want to take on big things, talk to me first; let's have a    design/vision discussion before you start coding. Create a GitHub    issue and we can use that as the place to hash things out.  - If you make changes, make them consistent with the syntactic    conventions already used in the codebase.  - Please provide Haddock documentation for any changes you make.+ - Please do NOT include package version changes in your patches.+   Package version changes are only done at release time when the full+   scope of a release's changes can be evaluated to determine the+   appropriate version change.  # Further Reading 
src/Graphics/Vty/Input/Events.hs view
@@ -42,7 +42,16 @@ instance NFData Modifier  -- | Mouse buttons.-data Button = BLeft | BMiddle | BRight | BScrollUp | BScrollDown+data Button+    = BLeft+    | BMiddle+    | BRight+    | BScrollUp+    | BScrollDown+    | BScrollLeft+    -- ^ Some terminals (e.g., Kitty, Alacritty) support horizontal+    -- scrolling in addition to vertical scrolling.+    | BScrollRight     deriving (Eq, Show, Read, Ord, Generic)  instance NFData Button
src/Graphics/Vty/PictureToSpans.hs view
@@ -172,7 +172,7 @@  swapSkipsForSingleColumnCharSpan :: Char -> Attr -> SpanOps -> SpanOps swapSkipsForSingleColumnCharSpan c a = Vector.map f-    where f (Skip ow) = let txt = TL.pack $ replicate ow c+    where f (Skip ow) = let txt = TL.take (toEnum ow) $ TL.repeat c                         in TextSpan a ow ow txt           f v = v 
vty.cabal view
@@ -1,5 +1,5 @@ name:                vty-version:             6.4+version:             6.6 license:             BSD3 license-file:        LICENSE author:              AUTHORS@@ -43,12 +43,12 @@                        blaze-builder >= 0.3.3.2 && < 0.5,                        bytestring,                        deepseq >= 1.1 && < 1.6,-                       microlens < 0.4.15,+                       microlens < 0.6,                        microlens-mtl,                        mtl >= 1.1.1.0 && < 2.4,                        stm,                        text >= 0.11.3,-                       utf8-string >= 0.3 && < 1.1,+                       utf8-string >= 0.3.1 && < 1.1,                        vector >= 0.7,                        binary,                        parsec,