packages feed

status-notifier-item 0.3.0.0 → 0.3.0.1

raw patch · 2 files changed

+12/−11 lines, 2 filesdep +textdep ~dbusPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: text

Dependency ranges changed: dbus

API changes (from Hackage documentation)

- StatusNotifier.Host.Service: Host :: IO (Map BusName ItemInfo) -> UpdateHandler -> IO Unique -> Unique -> IO () -> BusName -> IO () -> Host
+ StatusNotifier.Host.Service: Host :: IO (Map BusName ItemInfo) -> (UpdateHandler -> IO Unique) -> (Unique -> IO ()) -> (BusName -> IO ()) -> Host
- StatusNotifier.Host.Service: callFromInfo :: () => BusName -> ObjectPath -> t -> ItemInfo -> t
+ StatusNotifier.Host.Service: callFromInfo :: () => (BusName -> ObjectPath -> t) -> ItemInfo -> t
- StatusNotifier.Item.Service: buildItem :: ItemParams -> IO Either MethodError ()
+ StatusNotifier.Item.Service: buildItem :: ItemParams -> IO (Either MethodError ())

Files

src/StatusNotifier/Util.hs view
@@ -17,14 +17,13 @@ import           Language.Haskell.TH import           Network.Socket (ntohl) import           StatusNotifier.TH-import           System.IO-import           System.IO.Unsafe-import           System.Log.Handler.Simple+import qualified Data.Text.IO as TIO+import           Data.Text (pack) import           System.Log.Logger  getIntrospectionObjectFromFile :: FilePath -> T.ObjectPath -> Q I.Object getIntrospectionObjectFromFile filepath nodePath = runIO $-  head . maybeToList . I.parseXML nodePath <$> readFile filepath+  head . maybeToList . I.parseXML nodePath <$> TIO.readFile filepath  generateClientFromFile :: G.GenerationParams -> Bool -> FilePath -> Q [Dec] generateClientFromFile params useObjectPath filepath = do@@ -122,7 +121,7 @@   -> T.ObjectPath   -> IO (Either M.MethodError (Maybe I.Object)) getInterfaceAt client bus path =-  right (I.parseXML "/") <$> introspect client bus path+  right (I.parseXML "/" . pack) <$> introspect client bus path  findM :: Monad m => (a -> m Bool) -> [a] -> m (Maybe a) findM p [] = return Nothing
status-notifier-item.cabal view
@@ -1,11 +1,13 @@--- This file has been generated from package.yaml by hpack version 0.28.2.+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.31.1. -- -- see: https://github.com/sol/hpack ----- hash: 692373b1ddc9b82457b214c2eb42f50e70a132306fd54dc142eb6150b72e1a63+-- hash: 0a80c7788062c81393bf8273d706fa5e55fa7564193e42136f410ab6d147fe10  name:           status-notifier-item-version:        0.3.0.0+version:        0.3.0.1 synopsis:       A wrapper over the StatusNotifierItem/libappindicator dbus specification description:    Please see the README on Github at <https://github.com/IvanMalison/status-notifier-item#readme> category:       Desktop@@ -17,10 +19,9 @@ license:        BSD3 license-file:   LICENSE build-type:     Simple-cabal-version:  >= 1.10 extra-source-files:-    ChangeLog.md     README.md+    ChangeLog.md     xml/StatusNotifierItem.xml  source-repository head@@ -46,13 +47,14 @@       base >=4.7 && <5     , bytestring     , containers-    , dbus >=1.0.0 && <2.0.0+    , dbus >=1.2.1 && <2.0.0     , filepath     , hslogger     , lens     , network     , spool >=0.1 && <1.0     , template-haskell+    , text     , transformers     , vector   default-language: Haskell2010