Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data StripControl (t :: StripControlType)
- parseStripControl :: forall m (t :: StripControlType). MonadFail m => m Text -> m (StripControl t)
- type ConsoleLogStripControl = StripControl 'StripControlConsoleLog
- type FileLogStripControl = StripControl 'StripControlFileLog
Documentation
data StripControl (t :: StripControlType) Source #
Determines how we should treat control characters encountered in logs.
StripControlSmart | "Intelligently" strip control characters e.g. colors are fine, ones that affect the cursor should be removed. |
StripControlNone | Do not strip any control characters. |
StripControlAll | Strip all control characters. |
Instances
parseStripControl :: forall m (t :: StripControlType). MonadFail m => m Text -> m (StripControl t) Source #
type ConsoleLogStripControl = StripControl 'StripControlConsoleLog Source #
type FileLogStripControl = StripControl 'StripControlFileLog Source #