echo 0.1.1 → 0.1.2
raw patch · 3 files changed
+6/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +3/−0
- echo.cabal +1/−1
- src/System/IO/Echo/Internal.hs +2/−2
CHANGELOG.md view
@@ -1,3 +1,6 @@+### 0.1.2 [2017-01-09]+* Use more efficient implementation for `bracketInputEcho`.+ ### 0.1.1 [2017-01-07] * Use `System.Win32.MinTTY` from `Win32-2.5` or later if possible.
echo.cabal view
@@ -1,5 +1,5 @@ name: echo-version: 0.1.1+version: 0.1.2 synopsis: A cross-platform, cross-console way to handle echoing terminal input description: The @base@ library exposes the @hGetEcho@ and @hSetEcho@ functions for querying and setting echo status, but unfortunately, neither
src/System/IO/Echo/Internal.hs view
@@ -119,10 +119,10 @@ -- computation. -- -- @--- bracketInputEcho action = 'bracket' 'getInputEcho' 'setInputEcho' (const action)+-- bracketInputEcho action = 'bracket' 'getInputEchoState' 'setInputEchoState' (const action) -- @ bracketInputEcho :: IO a -> IO a-bracketInputEcho action = bracket getInputEcho setInputEcho (const action)+bracketInputEcho action = bracket getInputEchoState setInputEchoState (const action) -- | Perform a computation with the terminal's input echoing disabled. Before -- running the computation, the terminal's input 'EchoState' is saved, and the