rio-prettyprint-0.1.0.0: Pretty-printing for RIO

Safe HaskellNone
LanguageHaskell2010

RIO.PrettyPrint.Types

Description

For the most part, the data constructors of Style do not clash with other names. When they do, import the module qualified. For example:

import qualified RIO.PrettyPrint.Types.PrettyPrint as PP
Synopsis

Documentation

data Style Source #

A style of rio-prettyprint's output.

Instances
Bounded Style Source # 
Instance details

Defined in RIO.PrettyPrint.Types

Enum Style Source # 
Instance details

Defined in RIO.PrettyPrint.Types

Eq Style Source # 
Instance details

Defined in RIO.PrettyPrint.Types

Methods

(==) :: Style -> Style -> Bool #

(/=) :: Style -> Style -> Bool #

Ord Style Source # 
Instance details

Defined in RIO.PrettyPrint.Types

Methods

compare :: Style -> Style -> Ordering #

(<) :: Style -> Style -> Bool #

(<=) :: Style -> Style -> Bool #

(>) :: Style -> Style -> Bool #

(>=) :: Style -> Style -> Bool #

max :: Style -> Style -> Style #

min :: Style -> Style -> Style #

Show Style Source # 
Instance details

Defined in RIO.PrettyPrint.Types

Methods

showsPrec :: Int -> Style -> ShowS #

show :: Style -> String #

showList :: [Style] -> ShowS #

Ix Style Source # 
Instance details

Defined in RIO.PrettyPrint.Types

Semigroup Style Source #

The first style overrides the second.

Instance details

Defined in RIO.PrettyPrint.Types

Methods

(<>) :: Style -> Style -> Style #

sconcat :: NonEmpty Style -> Style #

stimes :: Integral b => b -> Style -> Style #

type Styles = Array Style StyleSpec Source #

Style specifications indexed by the style.

type StyleSpec = (Text, [SGR]) Source #

A style specification, pairing its 'key' with the corresponding list of SGR codes.