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

Navi.Services.Battery.Percentage

Description

This module provides a service for alerts related to battery levels.

Synopsis

Documentation

data BatteryPercentageToml Source #

TOML for the battery percentage service.

Instances

Instances details
Show BatteryPercentageToml Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

Eq BatteryPercentageToml Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

DecodeTOML BatteryPercentageToml Source #

Since: 0.1

Instance details

Defined in Navi.Services.Battery.Percentage.Toml

(k ~ A_Lens, a ~ NonEmpty BatteryPercentageNoteToml, b ~ NonEmpty BatteryPercentageNoteToml) => LabelOptic "alerts" k BatteryPercentageToml BatteryPercentageToml a b Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

(k ~ A_Lens, a ~ BatteryApp, b ~ BatteryApp) => LabelOptic "app" k BatteryPercentageToml BatteryPercentageToml a b Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

(k ~ A_Lens, a ~ Maybe ErrorNoteToml, b ~ Maybe ErrorNoteToml) => LabelOptic "errorNote" k BatteryPercentageToml BatteryPercentageToml a b Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

(k ~ A_Lens, a ~ Maybe PollInterval, b ~ Maybe PollInterval) => LabelOptic "pollInterval" k BatteryPercentageToml BatteryPercentageToml a b Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

(k ~ A_Lens, a ~ Maybe RepeatEventToml, b ~ Maybe RepeatEventToml) => LabelOptic "repeatEvent" k BatteryPercentageToml BatteryPercentageToml a b Source # 
Instance details

Defined in Navi.Services.Battery.Percentage.Toml

toEvent :: MonadIORef m => BatteryPercentageToml -> m AnyEvent Source #

Transforms toml configuration data into an AnyEvent.