dbus 0.10 → 0.10.1
raw patch · 3 files changed
+17/−14 lines, 3 filesdep ~bytestringdep ~unixdep ~vectorPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: bytestring, unix, vector
API changes (from Hackage documentation)
Files
- dbus.cabal +9/−9
- examples/introspect.hs +5/−2
- tests/haskell-dbus-tests.cabal +3/−3
dbus.cabal view
@@ -1,5 +1,5 @@ name: dbus-version: 0.10+version: 0.10.1 license: GPL-3 license-file: license.txt author: John Millikin <jmillikin@gmail.com>@@ -13,15 +13,15 @@ synopsis: A client library for the D-Bus IPC system. description:- D‑Bus is a simple, message-based protocol for inter-process+ D-Bus is a simple, message-based protocol for inter-process communication, which allows applications to interact with other parts of the machine and the user's session using remote procedure calls. .- D‑Bus is a essential part of the modern Linux desktop, where it replaces+ D-Bus is a essential part of the modern Linux desktop, where it replaces earlier protocols such as CORBA and DCOP. .- This library is an implementation of the D‑Bus protocol in Haskell. It- can be used to add D‑Bus support to Haskell applications, without the+ This library is an implementation of the D-Bus protocol in Haskell. It+ can be used to add D-Bus support to Haskell applications, without the awkward interfaces common to foreign bindings. . Example: connect to the session bus, and get a list of active names.@@ -86,7 +86,7 @@ source-repository this type: bazaar location: https://john-millikin.com/branches/haskell-dbus/0.10/- tag: haskell-dbus_0.10+ tag: haskell-dbus_0.10.1 flag network-bytestring-610 default: False@@ -102,7 +102,7 @@ -- tests/ build-depends: base >= 4.0 && < 5.0- , bytestring >= 0.9 && < 0.10+ , bytestring >= 0.9 , cereal >= 0.3.4 && < 0.4 , containers >= 0.1 && < 0.6 , libxml-sax >= 0.7 && < 0.8@@ -110,8 +110,8 @@ , random >= 1.0 && < 1.1 , text >= 0.11.1.5 && < 0.12 , transformers >= 0.2 && < 0.4- , unix >= 2.2 && < 2.6- , vector >= 0.7 && < 0.10+ , unix >= 2.2 && < 2.7+ , vector >= 0.7 && < 0.11 , xml-types >= 0.3 && < 0.4 -- haskell-dbus requires Network.Socket.ByteString, which can be provided
examples/introspect.hs view
@@ -17,6 +17,7 @@ module Main (main) where +import Control.Monad (when) import Data.String (fromString) import qualified Data.Text import System.Environment (getArgs, getProgName)@@ -45,7 +46,7 @@ { methodCallDestination = Just service } let Just xml = fromVariant (methodReturnBody reply !! 0)- case I.parseXml path xml of+ case I.parseXML path xml of Just info -> return info Nothing -> error ("Invalid introspection XML: " ++ show xml) @@ -104,4 +105,6 @@ putStrLn (I.propertyName prop) putStr " "- putStrLn (show (I.propertyAccess prop))+ when (I.propertyRead prop) (putStr "Read")+ when (I.propertyWrite prop) (putStr "Write")+ putStrLn ""
tests/haskell-dbus-tests.cabal view
@@ -26,7 +26,7 @@ build-depends: base > 4.0 && < 5.0- , bytestring >= 0.9 && < 0.10+ , bytestring >= 0.9 , cereal >= 0.3.4 && < 0.4 , chell >= 0.3 && < 0.4 , chell-quickcheck >= 0.2 && < 0.3@@ -40,8 +40,8 @@ , random >= 1.0 && < 1.1 , text >= 0.11.1.5 && < 0.12 , transformers >= 0.2 && < 0.4- , unix >= 2.2 && < 2.6- , vector >= 0.7 && < 0.10+ , unix >= 2.2 && < 2.7+ , vector >= 0.7 && < 0.11 , xml-types >= 0.3 && < 0.4 -- see comments in dbus.cabal