| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Navi.Data.PollInterval
Description
Provides the PollInterval type.
Since: 0.1
Synopsis
- newtype PollInterval = MkPollInterval {}
- parsePollInterval :: MonadFail m => Text -> m PollInterval
- pollIntervalOptDecoder :: Decoder (Maybe PollInterval)
- toSleepTime :: PollInterval -> Int
Documentation
newtype PollInterval Source #
Represents how often to poll for service changes, in seconds.
Since: 0.1
Constructors
| MkPollInterval | |
Fields | |
Instances
parsePollInterval :: MonadFail m => Text -> m PollInterval Source #
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