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

Navi.Event.Toml

Description

This modules provides toml configuration related to events.

Synopsis

Documentation

repeatEventOptDecoder :: Decoder (Maybe RepeatEventToml) Source #

TOML decoder for optional RepeatEventToml with field name "repeat-events".

Since: 0.1

mRepeatEventTomlToVal :: MonadIORef m => Maybe RepeatEventToml -> m (RepeatEvent a) Source #

Constructs a mutable RepeatEvent from RepeatEventToml. If none is provided, defaults to NoRepeatsToml, i.e., no repeats.

errorNoteOptDecoder :: Decoder (Maybe ErrorNoteToml) Source #

TOML decoder for optional ErrorNoteToml with field name "error-events".

Since: 0.1

mErrorNoteTomlToVal :: MonadIORef m => Maybe ErrorNoteToml -> m ErrorNote Source #

Constructs a mutable ErrorNote from ErrorNoteToml. If none is provided, defaults to ErrNoteNoRepeatsToml, i.e., we do send notifications for errors, but we do not send repeats.