Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data FileSizeMode
- defaultSizeMode :: FileSizeMode
- parseFileSizeMode :: MonadFail m => Text -> m FileSizeMode
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. |
Instances
Show FileSizeMode Source # | |
Defined in Charon.Runner.FileSizeMode showsPrec :: Int -> FileSizeMode -> ShowS # show :: FileSizeMode -> String # showList :: [FileSizeMode] -> ShowS # | |
Eq FileSizeMode Source # | |
Defined in Charon.Runner.FileSizeMode (==) :: FileSizeMode -> FileSizeMode -> Bool # (/=) :: FileSizeMode -> FileSizeMode -> Bool # |
parseFileSizeMode :: MonadFail m => Text -> m FileSizeMode Source #