navi-0.1: A utility program for sending system notifications.
Safe HaskellSafe-Inferred
LanguageGHC2021

Navi.Env.DBus

Description

Provides environment for usage with DBus.

Synopsis

Documentation

class HasDBusClient env where Source #

Retrieves the notification client.

Methods

getClient :: env -> Client Source #

Instances

Instances details
HasDBusClient DBusEnv Source # 
Instance details

Defined in Navi.Env.DBus

data DBusEnv Source #

Concrete dbus environment. Adds the dbus client.

Constructors

MkDBusEnv 

Fields

Instances

Instances details
HasEvents DBusEnv Source # 
Instance details

Defined in Navi.Env.DBus

HasLogEnv DBusEnv Source # 
Instance details

Defined in Navi.Env.DBus

HasLogQueue DBusEnv Source # 
Instance details

Defined in Navi.Env.DBus

HasNoteQueue DBusEnv Source # 
Instance details

Defined in Navi.Env.DBus

HasDBusClient DBusEnv Source # 
Instance details

Defined in Navi.Env.DBus

(k ~ A_Lens, a ~ Env, b ~ Env) => LabelOptic "coreEnv" k DBusEnv DBusEnv a b Source # 
Instance details

Defined in Navi.Env.DBus

(k ~ A_Lens, a ~ Client, b ~ Client) => LabelOptic "dbusClient" k DBusEnv DBusEnv a b Source # 
Instance details

Defined in Navi.Env.DBus

MonadNotify (NaviT DBusEnv IO) Source # 
Instance details

Defined in Navi.NaviT

mkDBusEnv :: (HasCallStack, MonadIO m, MonadSTM m) => LogEnv -> Config -> m DBusEnv Source #

Creates a DBusEnv from the provided log types and configuration data.

naviToDBus :: NaviNote -> Note Source #

Turns a NaviNote into a DBus Note.