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

Navi.Data.PollInterval

Description

Provides the PollInterval type.

Since: 0.1

Synopsis

Documentation

newtype PollInterval Source #

Represents how often to poll for service changes, in seconds.

Since: 0.1

Constructors

MkPollInterval 

Instances

Instances details
Bounded PollInterval Source #

Since: 0.1

Instance details

Defined in Navi.Data.PollInterval

Num PollInterval Source # 
Instance details

Defined in Navi.Data.PollInterval

Show PollInterval Source # 
Instance details

Defined in Navi.Data.PollInterval

Eq PollInterval Source # 
Instance details

Defined in Navi.Data.PollInterval

Ord PollInterval Source # 
Instance details

Defined in Navi.Data.PollInterval

DecodeTOML PollInterval Source #

Since: 0.1

Instance details

Defined in Navi.Data.PollInterval

(k ~ An_Iso, a ~ Natural, b ~ Natural) => LabelOptic "unPollInterval" k PollInterval PollInterval a b Source #

Since: 0.1

Instance details

Defined in Navi.Data.PollInterval

pollIntervalOptDecoder :: Decoder (Maybe PollInterval) Source #

TOML decoder for optional PollInterval with field name 'poll-interval'.

Since: 0.1

toSleepTime :: PollInterval -> Int Source #

Converts a PollInterval into an Int suitable to be used with threadDelay.

Since: 0.1