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

Shrun.Notify.Types

Description

Provides type for notifications.

Synopsis

Notify system

data NotifySystemP (p :: ConfigPhase) Source #

Notification systems.

Constructors

DBus (DBusF p)

Uses DBus.

NotifySend

Uses notify-send.

AppleScript

Uses apple-script.

Instances

Instances details
Show NotifySystemArgs Source # 
Instance details

Defined in Shrun.Notify.Types

Show NotifySystemMerged Source # 
Instance details

Defined in Shrun.Notify.Types

Show NotifySystemToml Source # 
Instance details

Defined in Shrun.Notify.Types

Eq NotifySystemArgs Source # 
Instance details

Defined in Shrun.Notify.Types

Eq NotifySystemMerged Source # 
Instance details

Defined in Shrun.Notify.Types

Eq NotifySystemToml Source # 
Instance details

Defined in Shrun.Notify.Types

DecodeTOML NotifySystemToml Source # 
Instance details

Defined in Shrun.Notify.Types

DBusF p ~ () => Default (NotifySystemP p) Source # 
Instance details

Defined in Shrun.Notify.Types

parseNotifySystem :: forall (p :: ConfigPhase) m. (DBusF p ~ (), MonadFail m) => m Text -> m (NotifySystemP p) Source #

Parses NotifySystem.

notifySystemStr :: IsString a => a Source #

Available NotifySystem strings.

showNotifySystem :: forall a (p :: ConfigPhase). IsString a => NotifySystemP p -> a Source #

type family DBusF (p :: ConfigPhase) where ... Source #

Maps DBus to its phased param.

Notify actions

data NotifyAction Source #

Determines for which actions we should send notifications.

Constructors

NotifyFinal

Send a notification after all commands are completed.

NotifyCommand

Send notifications when each command completes.

NotifyAll

NotifyFinal and NotifyCommand.

Instances

Instances details
Show NotifyAction Source # 
Instance details

Defined in Shrun.Notify.Types

Eq NotifyAction Source # 
Instance details

Defined in Shrun.Notify.Types

DecodeTOML NotifyAction Source # 
Instance details

Defined in Shrun.Notify.Types

notifyActionStr :: IsString a => a Source #

Available NotifyAction strings.

Notify timeout

data NotifyTimeout Source #

Determines notification timeout.

Constructors

NotifyTimeoutSeconds Word16

Times out after the given seconds.

NotifyTimeoutNever

Never times out.

notifyTimeoutStr :: IsString a => a Source #

Available NotifyTimeout strings.

Exceptions