packages feed

ansi-wl-pprint 0.3.0 → 0.3.1

raw patch · 2 files changed

+5/−9 lines, 2 filesdep ~ansi-terminalPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: ansi-terminal

API changes (from Hackage documentation)

Files

Text/PrettyPrint/ANSI/Leijen.hs view
@@ -117,7 +117,7 @@          ) where -import System.IO (Handle,hPutStr,hPutChar,hFlush,stdout)+import System.IO (Handle,hPutStr,hPutChar,stdout)  import System.Console.ANSI (ANSIColor(..), ANSISGR(..), hSetSGR, setSGRCode) @@ -982,11 +982,7 @@       display (SChar c x)    = do{ hPutChar handle c; display x}       display (SText l s x)  = do{ hPutStr handle s; display x}       display (SLine i x)    = do{ hPutStr handle ('\n':indentation i); display x}-      -- It's VERY IMPORTANT that we flush before issuing a SetSGR because on Windows the arrival of SGRs-      -- is not necessarily synchronised with that of the text they are attempting to modify, so if we don't-      -- flush more often than not the text simply comes out uncolored because all the SGRs have arrived /before/-      -- any text at all was pushed out to the console!-      display (SSGR s x)     = do{ hFlush handle; hSetSGR handle s; display x}+      display (SSGR s x)     = do{ hSetSGR handle s; display x}  ----------------------------------------------------------- -- default pretty printers: show, putDoc and hPutDoc
ansi-wl-pprint.cabal view
@@ -1,5 +1,5 @@ Name:                ansi-wl-pprint-Version:             0.3.0+Version:             0.3.1 Cabal-Version:       >= 1.2 Category:            User Interfaces, Text Synopsis:            The Wadler/Leijen Pretty Printer for colored ANSI terminal output@@ -24,7 +24,7 @@ Library         Exposed-Modules:        Text.PrettyPrint.ANSI.Leijen         -        Build-Depends:          ansi-terminal >= 0.3.0+        Build-Depends:          ansi-terminal >= 0.3.1         if flag(splitBase)                 Build-Depends:  base >= 3         else@@ -33,7 +33,7 @@ Executable ansi-wl-pprint-example         Main-Is:                Text/PrettyPrint/ANSI/Example.hs         -        Build-Depends:          ansi-terminal >= 0.3.0+        Build-Depends:          ansi-terminal >= 0.3.1         if flag(splitBase)                 Build-Depends:  base >= 3         else