Copyright | Copyright (c) 2014-2015 PivotCloud, Inc. |
---|---|
License | Apache License, Version 2.0 |
Maintainer | Lars Kuhtz <lkuhtz@pivotmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
An option that indicates whether ANSI color escapes shall be used in textual output.
- 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
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
pColorOption :: Parser ColorOption Source
:: Text | prefix for the command line options. |
-> Parser ColorOption |
A version of pColorOption
that takes a prefix for the
command line option.
@since 0.2