encoding 0.10.3 → 0.10.4
raw patch · 3 files changed
+9/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG +5/−0
- Data/Encoding.hs +3/−3
- encoding.cabal +1/−1
CHANGELOG view
@@ -1,3 +1,8 @@+Changes from 0.10.3 to 0.10.4+---------------------------++* fix clash with `containers-0.8.1`.+ Changes from 0.10.2 to 0.10.3 ---------------------------
Data/Encoding.hs view
@@ -28,7 +28,7 @@ import Data.Encoding.ByteSink import Data.Encoding.Exception -import Data.Sequence+import qualified Data.Sequence as Seq import Data.Foldable(toList) import Data.Char @@ -101,10 +101,10 @@ recode e1 e2 = untilM_ sourceEmpty (decodeChar e1 >>= encodeChar e2) encodeString :: Encoding enc => enc -> String -> String-encodeString e str = toList $ viewl $ execState (encode e str) empty+encodeString e str = toList $ Seq.viewl $ execState (encode e str) Seq.empty encodeStringExplicit :: Encoding enc => enc -> String -> Either EncodingException String-encodeStringExplicit e str = execStateT (encode e str) empty >>= return.toList.viewl+encodeStringExplicit e str = execStateT (encode e str) Seq.empty >>= return.toList.Seq.viewl decodeString :: Encoding enc => enc -> String -> String decodeString e str = evalState (decode e) str
encoding.cabal view
@@ -1,5 +1,5 @@ Name: encoding-Version: 0.10.3+Version: 0.10.4 Author: Henning Günther Maintainer: daniel@wagner-home.com, Andrey Prokopenko License: BSD3