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

Navi.Effects.MonadNotify

Description

Provides an effect for sending system notifications.

Synopsis

Documentation

class Monad m => MonadNotify m where Source #

This class represents sending desktop notifications.

Methods

sendNote :: HasCallStack => NaviNote -> m () Source #

Instances

Instances details
MonadNotify (NaviT DBusEnv IO) Source # 
Instance details

Defined in Navi.NaviT

MonadNotify (NaviT NotifySendEnv IO) Source # 
Instance details

Defined in Navi.NaviT

MonadNotify m => MonadNotify (ReaderT e m) Source # 
Instance details

Defined in Navi.Effects.MonadNotify

Methods

sendNote :: NaviNote -> ReaderT e m () Source #

sendNoteQueue :: (HasCallStack, HasNoteQueue env, MonadReader env m, MonadSTM m) => NaviNote -> m () Source #

Convenience function for retrieving a TBQueue NaviNote from the env and sending the note.