patat-0.8.8.0: Terminal-based presentations using Pandoc
Safe HaskellSafe-Inferred
LanguageHaskell2010

Patat.Theme

Documentation

data Theme Source #

Constructors

Theme 

Fields

Instances

Instances details
FromJSON Theme Source # 
Instance details

Defined in Patat.Theme

Methods

parseJSON :: Value -> Parser Theme

parseJSONList :: Value -> Parser [Theme]

ToJSON Theme Source # 
Instance details

Defined in Patat.Theme

Methods

toJSON :: Theme -> Value

toEncoding :: Theme -> Encoding

toJSONList :: [Theme] -> Value

toEncodingList :: [Theme] -> Encoding

Monoid Theme Source # 
Instance details

Defined in Patat.Theme

Semigroup Theme Source # 
Instance details

Defined in Patat.Theme

Methods

(<>) :: Theme -> Theme -> Theme

sconcat :: NonEmpty Theme -> Theme

stimes :: Integral b => b -> Theme -> Theme

Show Theme Source # 
Instance details

Defined in Patat.Theme

Methods

showsPrec :: Int -> Theme -> ShowS

show :: Theme -> String

showList :: [Theme] -> ShowS

newtype Style Source #

Constructors

Style 

Fields

Instances

Instances details
FromJSON Style Source # 
Instance details

Defined in Patat.Theme

Methods

parseJSON :: Value -> Parser Style

parseJSONList :: Value -> Parser [Style]

ToJSON Style Source # 
Instance details

Defined in Patat.Theme

Methods

toJSON :: Style -> Value

toEncoding :: Style -> Encoding

toJSONList :: [Style] -> Value

toEncodingList :: [Style] -> Encoding

Monoid Style Source # 
Instance details

Defined in Patat.Theme

Semigroup Style Source # 
Instance details

Defined in Patat.Theme

Methods

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

sconcat :: NonEmpty Style -> Style

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

Show Style Source # 
Instance details

Defined in Patat.Theme

Methods

showsPrec :: Int -> Style -> ShowS

show :: Style -> String

showList :: [Style] -> ShowS

newtype SyntaxHighlighting Source #

Constructors

SyntaxHighlighting 

Fields

Instances

Instances details
FromJSON SyntaxHighlighting Source # 
Instance details

Defined in Patat.Theme

Methods

parseJSON :: Value -> Parser SyntaxHighlighting

parseJSONList :: Value -> Parser [SyntaxHighlighting]

ToJSON SyntaxHighlighting Source # 
Instance details

Defined in Patat.Theme

Monoid SyntaxHighlighting Source # 
Instance details

Defined in Patat.Theme

Semigroup SyntaxHighlighting Source # 
Instance details

Defined in Patat.Theme

Show SyntaxHighlighting Source # 
Instance details

Defined in Patat.Theme

Methods

showsPrec :: Int -> SyntaxHighlighting -> ShowS

show :: SyntaxHighlighting -> String

showList :: [SyntaxHighlighting] -> ShowS

syntaxHighlight :: Theme -> TokenType -> Maybe Style Source #