wl-pprint-terminfo 3.7 → 3.7.1
raw patch · 3 files changed
+11/−3 lines, 3 filesdep ~terminfo
Dependency ranges changed: terminfo
Files
- CHANGELOG.markdown +6/−0
- src/System/Console/Terminfo/PrettyPrint.hs +1/−1
- wl-pprint-terminfo.cabal +4/−2
CHANGELOG.markdown view
@@ -1,3 +1,9 @@+3.7.1+-----+* Responds more gracefully to `SFail`, which was added to `wl-pprint-terminfo`.+* Added support for `terminfo` 0.4++ 3.7 --- * Added support for `text` 1.0
src/System/Console/Terminfo/PrettyPrint.hs view
@@ -188,11 +188,11 @@ displayCap :: SimpleTermDoc -> StateT TermState Capability TermOutput displayCap = go where- go SEmpty = return mempty go (SChar c x) = (termText [c] <#>) <$> go x go (SText _ s x) = (termText s <#>) <$> go x go (SLine i x) = (termText ('\n': spaces i) <#>) <$> go x go (SEffect e t) = (<#>) <$> eval e <*> go t+ go _ = return mempty spaces :: Int -> String spaces n | n <= 0 = ""
wl-pprint-terminfo.cabal view
@@ -1,6 +1,6 @@ name: wl-pprint-terminfo category: Control, Monads, Text-version: 3.7+version: 3.7.1 cabal-version: >= 1.6 license: BSD3 license-file: LICENSE@@ -32,6 +32,8 @@ location: git://github.com/ekmett/wl-pprint-terminfo.git flag Cursed+ description: Build with curses. Used to determine window width. Without+ curses, width is always 80 columns. manual: False default: True @@ -50,7 +52,7 @@ nats >= 0.1 && < 1, semigroups >= 0.9 && < 1, wl-pprint-extras >= 3.4 && < 4,- terminfo >= 0.3.2 && < 0.4,+ terminfo >= 0.3.2 && < 0.5, transformers >= 0.2 && < 0.4, text >= 0.11 && < 1.2