ENH use rio for xmobar plugins
This commit is contained in:
parent
39bd464ca1
commit
f6c0596716
|
@ -13,8 +13,8 @@ import Xmobar.Plugins.Common
|
|||
|
||||
startBacklight
|
||||
:: (MonadUnliftIO m, RealFrac a)
|
||||
=> ((Maybe a -> m ()) -> SesClient -> m ())
|
||||
-> (SesClient -> m (Maybe a))
|
||||
=> ((Maybe a -> RIO SimpleApp ()) -> SesClient -> RIO SimpleApp ())
|
||||
-> (SesClient -> RIO SimpleApp (Maybe a))
|
||||
-> T.Text
|
||||
-> Callback
|
||||
-> m ()
|
||||
|
|
|
@ -70,6 +70,6 @@ displayMaybe' cb = maybe (liftIO $ cb $ T.unpack na)
|
|||
withDBusClientConnection
|
||||
:: (MonadUnliftIO m, SafeClient c)
|
||||
=> Callback
|
||||
-> (c -> m ())
|
||||
-> (c -> RIO SimpleApp ())
|
||||
-> m ()
|
||||
withDBusClientConnection cb f = displayMaybe' cb f =<< getDBusClient
|
||||
withDBusClientConnection cb f = runSimpleApp $ displayMaybe' cb f =<< getDBusClient
|
||||
|
|
Loading…
Reference in New Issue