Copyright | Copyright (c) 2016-2018 Lars Kuhtz <lakuhtz@gmail.com> Copyright (c) 2014-2015 PivotCloud Inc. |
---|---|
License | Apache License, Version 2.0 |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
An option that indicates whether ANSI color escapes shall be used in textual output.
Synopsis
- data ColorOption
- readColorOption :: (Monad m, Eq a, Show a, FoldCase a, IsString a, IsString e, Monoid e, MonadError e m) => a -> m ColorOption
- colorOptionText :: IsString a => ColorOption -> a
- defaultColorOption :: ColorOption
- pColorOption :: Parser ColorOption
- pColorOption_ :: Text -> Parser ColorOption
- useColor :: ColorOption -> Handle -> IO Bool
Documentation
data ColorOption Source #
Color Option
Instances
readColorOption :: (Monad m, Eq a, Show a, FoldCase a, IsString a, IsString e, Monoid e, MonadError e m) => a -> m ColorOption Source #
colorOptionText :: IsString a => ColorOption -> a Source #
:: Text | prefix for the command line options. |
-> Parser ColorOption |
A version of pColorOption
that takes a prefix for the
command line option.
Since: yet-another-logger-0.2