silkscreen-0.0.0.4: Prettyprinting transformers.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Silkscreen.Printer.Rainbow

Synopsis

Rainbow parentheses

runRainbow :: (Int -> a -> a) -> Int -> Rainbow a -> a Source #

newtype Rainbow a Source #

Constructors

Rainbow ((Int -> a -> a) -> Int -> a) 

Instances

Instances details
Monoid a => Monoid (Rainbow a) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

Methods

mempty :: Rainbow a

mappend :: Rainbow a -> Rainbow a -> Rainbow a

mconcat :: [Rainbow a] -> Rainbow a

Semigroup a => Semigroup (Rainbow a) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

Methods

(<>) :: Rainbow a -> Rainbow a -> Rainbow a #

sconcat :: NonEmpty (Rainbow a) -> Rainbow a

stimes :: Integral b => b -> Rainbow a -> Rainbow a

Show a => Show (Rainbow a) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

Methods

showsPrec :: Int -> Rainbow a -> ShowS

show :: Rainbow a -> String

showList :: [Rainbow a] -> ShowS

Printer a => Printer (Rainbow a) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

Associated Types

type Ann (Rainbow a) Source #

Printer a => NestingPrinter (Rainbow a) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

Methods

askingNesting :: (Int -> Rainbow a) -> Rainbow a Source #

localNesting :: (Int -> Int) -> Rainbow a -> Rainbow a Source #

applyNesting :: Rainbow a -> Rainbow a Source #

PrecedencePrinter p => PrecedencePrinter (Rainbow p) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

Associated Types

type Level (Rainbow p) Source #

Methods

askingPrec :: (Level (Rainbow p) -> Rainbow p) -> Rainbow p Source #

localPrec :: (Level (Rainbow p) -> Level (Rainbow p)) -> Rainbow p -> Rainbow p Source #

type Ann (Rainbow a) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

type Ann (Rainbow a) = Ann a
type Level (Rainbow p) Source # 
Instance details

Defined in Silkscreen.Printer.Rainbow

type Level (Rainbow p) = Level p

Re-exports