QuickCheck 2.11 → 2.11.1
raw patch · 3 files changed
+11/−12 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- QuickCheck.cabal +2/−2
- Test/QuickCheck/Text.hs +6/−10
- changelog +3/−0
QuickCheck.cabal view
@@ -1,5 +1,5 @@ Name: QuickCheck-Version: 2.11+Version: 2.11.1 Cabal-Version: >= 1.8 Build-type: Simple License: BSD3@@ -49,7 +49,7 @@ source-repository this type: git location: https://github.com/nick8325/quickcheck- tag: 2.11+ tag: 2.11.1 flag templateHaskell Description: Build Test.QuickCheck.All, which uses Template Haskell.
Test/QuickCheck/Text.hs view
@@ -119,15 +119,9 @@ hPutStr h s hFlush h -flush :: Terminal -> IO ()-flush (MkTerminal _ tmp _ err) =- do n <- readIORef tmp- writeIORef tmp 0- err (replicate n ' ' ++ replicate n '\b')- putPart, putTemp, putLine :: Terminal -> String -> IO () putPart tm@(MkTerminal res _ out _) s =- do flush tm+ do putTemp tm "" force s out s modifyIORef res (. showString s)@@ -142,9 +136,11 @@ putLine tm s = putPart tm (s ++ "\n") putTemp tm@(MkTerminal _ tmp _ err) s =- do flush tm- err (s ++ [ '\b' | _ <- s ])- modifyIORef tmp (+ length s)+ do n <- readIORef tmp+ err $+ replicate n ' ' ++ replicate n '\b' +++ s ++ [ '\b' | _ <- s ]+ writeIORef tmp (length s) -------------------------------------------------------------------------- -- the end.
changelog view
@@ -1,3 +1,6 @@+QuickCheck 2.11.1 (released 2018-01-12)+ * Fix flickering with terminal output.+ QuickCheck 2.11 (released 2018-01-12) * New features: - InfiniteList modifier generates infinite lists and shows