packages feed

haxr 3000.11.1.6 → 3000.11.2

raw patch · 3 files changed

+14/−2 lines, 3 filesdep +textPVP ok

version bump matches the API change (PVP)

Dependencies added: text

API changes (from Hackage documentation)

+ Network.XmlRpc.Internals: instance Network.XmlRpc.Internals.XmlRpcType Data.Text.Internal.Text

Files

CHANGES view
@@ -1,3 +1,7 @@+* 3000.11.2 (9 August 2016)++  - Add XmlRpcType instance for Text+ * 3000.11.1.6 (30 May 2016)    - bug fix: default port is now 80 or 443 based on protocol
Network/XmlRpc/Internals.hs view
@@ -57,6 +57,8 @@ import           System.Locale (defaultTimeLocale) #endif +import           Data.Text (Text)+import qualified Data.Text as T import qualified Data.ByteString.Char8 as BS (ByteString, pack, unpack) import qualified Data.ByteString.Lazy.Char8 as BSL (ByteString, pack) import qualified Network.XmlRpc.Base64 as Base64@@ -273,6 +275,11 @@         where f (ValueString x) = Just x               f (ValueUnwrapped x) = Just x               f _ = Nothing+    getType _ = TString++instance XmlRpcType Text where+    toValue = ValueString . T.unpack+    fromValue = (liftM T.pack) . fromValue     getType _ = TString  instance XmlRpcType BS.ByteString where
haxr.cabal view
@@ -1,5 +1,5 @@ Name: haxr-Version: 3000.11.1.6+Version: 3000.11.2 Cabal-version: >=1.10 Build-type: Simple Copyright: Bjorn Bringert, 2003-2006@@ -22,7 +22,7 @@         examples/test_client.hs       examples/test_server.hs       examples/time-xmlrpc-com.hs         examples/validate.hs          examples/Makefile Bug-reports: https://github.com/byorgey/haxr/issues-Tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1+Tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1  Source-repository head   type:     git@@ -49,6 +49,7 @@                  old-locale,                  old-time,                  time,+                 text,                  array,                  utf8-string,                  template-haskell,