shrun
Safe HaskellNone
LanguageGHC2021

Shrun.Notify

Description

Module for sending notifications.

Synopsis

Documentation

newtype NotifyMessage Source #

Constructors

UnsafeNotifyMessage 

Instances

Instances details
IsString NotifyMessage Source # 
Instance details

Defined in Shrun.Notify

Show NotifyMessage Source # 
Instance details

Defined in Shrun.Notify

Eq NotifyMessage Source # 
Instance details

Defined in Shrun.Notify

(k ~ A_Getter, a ~ Text, b ~ Text) => LabelOptic "unNotifyMessage" k NotifyMessage NotifyMessage a b Source # 
Instance details

Defined in Shrun.Notify

sendNotif Source #

Arguments

:: forall m env notifyEnv. (HasAnyError env, HasCallStack, HasCommands env, HasLogging env m, HasNotifyConfig env notifyEnv, MonadAtomic m, MonadCatch m, MonadNotify m, MonadReader env m, MonadRegionLogger m, MonadTime m, NotifyEnvF m ~ notifyEnv) 
=> NotifyMessage

Notif summary

-> NotifyMessage

Notif body

-> NotifyUrgency

Notif urgency

-> m () 

Sends a notification if they are With (linux only). Logs any failed sends.