Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data FileSizeMode
- parseFileSizeMode :: MonadFail m => m Text -> m FileSizeMode
- expectedStr :: String
Documentation
data FileSizeMode Source #
Determines what to do if the log file surpasses the given size threshold.
FileSizeModeWarn (Bytes 'B Natural) | Print a warning. |
FileSizeModeDelete (Bytes 'B Natural) | Delete the file. |
FileSizeModeNothing | Does nothing. |
Instances
Show FileSizeMode Source # | |
Defined in Shrun.Configuration.Data.FileLogging.FileSizeMode showsPrec :: Int -> FileSizeMode -> ShowS # show :: FileSizeMode -> String # showList :: [FileSizeMode] -> ShowS # | |
Eq FileSizeMode Source # | |
Defined in Shrun.Configuration.Data.FileLogging.FileSizeMode (==) :: FileSizeMode -> FileSizeMode -> Bool # (/=) :: FileSizeMode -> FileSizeMode -> Bool # | |
Default FileSizeMode Source # | |
Defined in Shrun.Configuration.Data.FileLogging.FileSizeMode def :: FileSizeMode Source # | |
DecodeTOML FileSizeMode Source # | |
parseFileSizeMode :: MonadFail m => m Text -> m FileSizeMode Source #
expectedStr :: String Source #