Safe Haskell | None |
---|---|
Language | GHC2021 |
Provides the TimerFormat
type.
Synopsis
- data TimerFormat
- parseTimerFormat :: MonadFail m => m Text -> m TimerFormat
- timerFormatStr :: IsString a => a
- formatRelativeTime :: TimerFormat -> RelativeTime -> UnlinedText
- formatSeconds :: TimerFormat -> Natural -> UnlinedText
Type
data TimerFormat Source #
Determines how to format the timer.
Instances
Show TimerFormat Source # | |
Defined in Shrun.Configuration.Data.ConsoleLogging.TimerFormat showsPrec :: Int -> TimerFormat -> ShowS # show :: TimerFormat -> String # showList :: [TimerFormat] -> ShowS # | |
Eq TimerFormat Source # | |
Defined in Shrun.Configuration.Data.ConsoleLogging.TimerFormat (==) :: TimerFormat -> TimerFormat -> Bool # (/=) :: TimerFormat -> TimerFormat -> Bool # | |
Default TimerFormat Source # | |
Defined in Shrun.Configuration.Data.ConsoleLogging.TimerFormat def :: TimerFormat Source # | |
DecodeTOML TimerFormat Source # | |
Parsing
parseTimerFormat :: MonadFail m => m Text -> m TimerFormat Source #
Parse timer format.
timerFormatStr :: IsString a => a Source #
Available TimerFormat
strings.
Formatting
formatRelativeTime :: TimerFormat -> RelativeTime -> UnlinedText Source #
Formats a relative time.
formatSeconds :: TimerFormat -> Natural -> UnlinedText Source #
Formats a relative time seconds.