pretty-simple-3.1.1.0: pretty printer for data types with a 'Show' instance.

Copyright(c) Dennis Gosnell 2016
LicenseBSD-style (see LICENSE file)
Maintainercdep.illabout@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Text.Pretty.Simple.Internal.Color

Description

 
Synopsis

Documentation

data ColorOptions Source #

These options are for colorizing the output of functions like pPrint.

For example, if you set colorQuote to something like colorVividBlueBold, then the quote character (") will be output as bright blue in bold.

If you don't want to use a color for one of the options, use colorNull.

Constructors

ColorOptions 

Fields

defaultColorQuoteDarkBg :: Builder Source #

Default color for colorQuote for dark backgrounds. This is colorVividWhiteBold.

defaultColorStringDarkBg :: Builder Source #

Default color for colorString for dark backgrounds. This is colorVividBlueBold.

defaultColorErrorDarkBg :: Builder Source #

Default color for colorError for dark backgrounds. This is colorVividRedBold.

defaultColorNumDarkBg :: Builder Source #

Default color for colorNum for dark backgrounds. This is colorVividGreenBold.

defaultColorRainbowParensDarkBg :: [Builder] Source #

Default colors for colorRainbowParens for dark backgrounds.

defaultColorQuoteLightBg :: Builder Source #

Default color for colorQuote for light backgrounds. This is colorVividWhiteBold.

defaultColorStringLightBg :: Builder Source #

Default color for colorString for light backgrounds. This is colorVividBlueBold.

defaultColorErrorLightBg :: Builder Source #

Default color for colorError for light backgrounds. This is colorVividRedBold.

defaultColorNumLightBg :: Builder Source #

Default color for colorNum for light backgrounds. This is colorVividGreenBold.

defaultColorRainbowParensLightBg :: [Builder] Source #

Default colors for colorRainbowParens for light backgrounds.

colorBold :: Builder Source #

Change the intensity to BoldIntensity.

colorReset :: Builder Source #

Reset the console color back to normal.

colorNull :: Builder Source #

Empty string.

colorHelper :: ColorIntensity -> Color -> Builder Source #

Helper for creating a Builder for an ANSI escape sequence color based on a ColorIntensity and a Color.

setSGRCodeBuilder :: [SGR] -> Builder Source #

Convert a list of SGR to a Builder.