shrun-0.9: A utility program for running shell commands concurrently.
Safe HaskellNone
LanguageGHC2021

Shrun.Notify.MonadNotify

Description

Provides effects for sending notifications.

Synopsis

Documentation

class Monad m => MonadNotify (m :: Type -> Type) where Source #

General effect for sending notifications.

Instances

Instances details
(MonadAppleScript m, MonadDBus m, MonadNotifySend m) => MonadNotify (ShellT (Env r) m) Source # 
Instance details

Defined in Shrun.ShellT

data ShrunNote Source #

Holds notification data.

Instances

Instances details
Show ShrunNote Source # 
Instance details

Defined in Shrun.Notify.MonadNotify

Eq ShrunNote Source # 
Instance details

Defined in Shrun.Notify.MonadNotify

(k ~ A_Lens, a ~ UnlinedText, b ~ UnlinedText) => LabelOptic "body" k ShrunNote ShrunNote a b Source # 
Instance details

Defined in Shrun.Notify.MonadNotify

(k ~ A_Lens, a ~ UnlinedText, b ~ UnlinedText) => LabelOptic "summary" k ShrunNote ShrunNote a b Source # 
Instance details

Defined in Shrun.Notify.MonadNotify

(k ~ A_Lens, a ~ NotifyTimeout, b ~ NotifyTimeout) => LabelOptic "timeout" k ShrunNote ShrunNote a b Source # 
Instance details

Defined in Shrun.Notify.MonadNotify

(k ~ A_Lens, a ~ UrgencyLevel, b ~ UrgencyLevel) => LabelOptic "urgency" k ShrunNote ShrunNote a b Source # 
Instance details

Defined in Shrun.Notify.MonadNotify

exitFailureToStderr :: (ExitCode, ByteString) -> Maybe ByteString Source #

Maps (ExitCode, stderr) to Just stderr, if the exit code is ExitFailure.