Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- wrapSGRCode :: (IsString a, Monoid a) => [SGR] -> a -> a
- severitySgr :: Severity -> [SGR]
- colorizeWith :: (Monoid msg, IsString msg) => (Severity -> [SGR]) -> WithSeverity msg -> WithSeverity msg
- colorize :: (Monoid msg, IsString msg) => WithSeverity msg -> WithSeverity msg
- renderWithColor :: (Monoid msg, IsString msg, Pretty msg) => WithSeverity msg -> Doc ann
Documentation
wrapSGRCode :: (IsString a, Monoid a) => [SGR] -> a -> a Source #
Apply SGR
codes to a string to modify its display attributes, resetting
SGR codes afterward.
colorizeWith :: (Monoid msg, IsString msg) => (Severity -> [SGR]) -> WithSeverity msg -> WithSeverity msg Source #
Color based on severity with a custom mapping of severity to SGR styles
colorize :: (Monoid msg, IsString msg) => WithSeverity msg -> WithSeverity msg Source #
Color based on severity with the default mapping of severity to SGR styles
renderWithColor :: (Monoid msg, IsString msg, Pretty msg) => WithSeverity msg -> Doc ann Source #