| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Shrun.Notify
Description
Module for sending notifications.
Synopsis
- sendNotif :: (HasAnyError env, HasCallStack, HasCommonLogging env, HasConsoleLogging env (Region m), HasFileLogging env, HasNotifyConfig env, MonadNotify m, MonadReader env m, MonadRegionLogger m, MonadSTM m, MonadTime m) => UnlinedText -> UnlinedText -> UrgencyLevel -> m ()
Documentation
Arguments
| :: (HasAnyError env, HasCallStack, HasCommonLogging env, HasConsoleLogging env (Region m), HasFileLogging env, HasNotifyConfig env, MonadNotify m, MonadReader env m, MonadRegionLogger m, MonadSTM m, MonadTime m) | |
| => UnlinedText | Notif summary |
| -> UnlinedText | Notif body |
| -> UrgencyLevel | Notif urgency |
| -> m () |
Sends a notification if they are enabled (linux only). Logs any failed sends.