symantic-document-0.0.0.20170623: Document symantics.

Safe HaskellSafe
LanguageHaskell98

Language.Symantic.Document.Sym

Contents

Synopsis

Class Doc_Text

class (IsString d, Semigroup d) => Doc_Text d where Source #

Methods

charH :: Char -> d Source #

stringH :: String -> d Source #

textH :: Text -> d Source #

ltextH :: Text -> d Source #

replicate :: Int -> d -> d Source #

integer :: Integer -> d Source #

charH :: Doc_Text (ReprOf d) => Trans d => Char -> d Source #

stringH :: Doc_Text (ReprOf d) => Trans d => String -> d Source #

textH :: Doc_Text (ReprOf d) => Trans d => Text -> d Source #

ltextH :: Doc_Text (ReprOf d) => Trans d => Text -> d Source #

replicate :: Doc_Text (ReprOf d) => Trans d => Int -> d -> d Source #

integer :: Doc_Text (ReprOf d) => Trans d => Integer -> d Source #

empty :: d Source #

eol :: d Source #

space :: d Source #

spaces :: Int -> d Source #

int :: Int -> d Source #

char :: Char -> d Source #

string :: String -> d Source #

text :: Text -> d Source #

ltext :: Text -> d Source #

catH :: Foldable f => f d -> d Source #

catV :: Foldable f => f d -> d Source #

paren :: d -> d Source #

brace :: d -> d Source #

bracket :: d -> d Source #

bquote :: d -> d Source #

dquote :: d -> d Source #

fquote :: d -> d Source #

squote :: d -> d Source #

Instances

Doc_Text PlainIO Source # 
Doc_Text Plain Source # 
Doc_Text Dim Source # 
Doc_Text ANSI_IO Source # 
Doc_Text ANSI Source # 
(Doc_Text repr, Semigroup repr) => Doc_Text (Valid repr) Source # 

Methods

charH :: Char -> Valid repr Source #

stringH :: String -> Valid repr Source #

textH :: Text -> Valid repr Source #

ltextH :: Text -> Valid repr Source #

replicate :: Int -> Valid repr -> Valid repr Source #

integer :: Integer -> Valid repr Source #

empty :: Valid repr Source #

eol :: Valid repr Source #

space :: Valid repr Source #

spaces :: Int -> Valid repr Source #

int :: Int -> Valid repr Source #

char :: Char -> Valid repr Source #

string :: String -> Valid repr Source #

text :: Text -> Valid repr Source #

ltext :: Text -> Valid repr Source #

catH :: Foldable f => f (Valid repr) -> Valid repr Source #

catV :: Foldable f => f (Valid repr) -> Valid repr Source #

paren :: Valid repr -> Valid repr Source #

brace :: Valid repr -> Valid repr Source #

bracket :: Valid repr -> Valid repr Source #

bquote :: Valid repr -> Valid repr Source #

dquote :: Valid repr -> Valid repr Source #

fquote :: Valid repr -> Valid repr Source #

squote :: Valid repr -> Valid repr Source #

Class Doc_Color

class Doc_Color d where Source #

Methods

reverse :: d -> d Source #

black :: d -> d Source #

red :: d -> d Source #

green :: d -> d Source #

yellow :: d -> d Source #

blue :: d -> d Source #

magenta :: d -> d Source #

cyan :: d -> d Source #

white :: d -> d Source #

blacker :: d -> d Source #

redder :: d -> d Source #

greener :: d -> d Source #

yellower :: d -> d Source #

bluer :: d -> d Source #

magentaer :: d -> d Source #

cyaner :: d -> d Source #

whiter :: d -> d Source #

onBlack :: d -> d Source #

onRed :: d -> d Source #

onGreen :: d -> d Source #

onYellow :: d -> d Source #

onBlue :: d -> d Source #

onMagenta :: d -> d Source #

onCyan :: d -> d Source #

onWhite :: d -> d Source #

onBlacker :: d -> d Source #

onRedder :: d -> d Source #

onGreener :: d -> d Source #

onYellower :: d -> d Source #

onBluer :: d -> d Source #

onMagentaer :: d -> d Source #

onCyaner :: d -> d Source #

onWhiter :: d -> d Source #

reverse :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

black :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

red :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

green :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

yellow :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

blue :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

magenta :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

cyan :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

white :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

blacker :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

redder :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

greener :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

yellower :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

bluer :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

magentaer :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

cyaner :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

whiter :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onBlack :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onRed :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onGreen :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onYellow :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onBlue :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onMagenta :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onCyan :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onWhite :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onBlacker :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onRedder :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onGreener :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onYellower :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onBluer :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onMagentaer :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onCyaner :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

onWhiter :: Doc_Color (ReprOf d) => Trans d => d -> d Source #

Instances

Doc_Color PlainIO Source # 
Doc_Color Plain Source # 
Doc_Color Dim Source # 
Doc_Color ANSI_IO Source # 
Doc_Color ANSI Source # 
Doc_Color repr => Doc_Color (Valid repr) Source # 

Methods

reverse :: Valid repr -> Valid repr Source #

black :: Valid repr -> Valid repr Source #

red :: Valid repr -> Valid repr Source #

green :: Valid repr -> Valid repr Source #

yellow :: Valid repr -> Valid repr Source #

blue :: Valid repr -> Valid repr Source #

magenta :: Valid repr -> Valid repr Source #

cyan :: Valid repr -> Valid repr Source #

white :: Valid repr -> Valid repr Source #

blacker :: Valid repr -> Valid repr Source #

redder :: Valid repr -> Valid repr Source #

greener :: Valid repr -> Valid repr Source #

yellower :: Valid repr -> Valid repr Source #

bluer :: Valid repr -> Valid repr Source #

magentaer :: Valid repr -> Valid repr Source #

cyaner :: Valid repr -> Valid repr Source #

whiter :: Valid repr -> Valid repr Source #

onBlack :: Valid repr -> Valid repr Source #

onRed :: Valid repr -> Valid repr Source #

onGreen :: Valid repr -> Valid repr Source #

onYellow :: Valid repr -> Valid repr Source #

onBlue :: Valid repr -> Valid repr Source #

onMagenta :: Valid repr -> Valid repr Source #

onCyan :: Valid repr -> Valid repr Source #

onWhite :: Valid repr -> Valid repr Source #

onBlacker :: Valid repr -> Valid repr Source #

onRedder :: Valid repr -> Valid repr Source #

onGreener :: Valid repr -> Valid repr Source #

onYellower :: Valid repr -> Valid repr Source #

onBluer :: Valid repr -> Valid repr Source #

onMagentaer :: Valid repr -> Valid repr Source #

onCyaner :: Valid repr -> Valid repr Source #

onWhiter :: Valid repr -> Valid repr Source #

Class Doc_Decoration

Class Trans

class Trans tr where Source #

Minimal complete definition

trans, unTrans

Associated Types

type ReprOf tr :: * Source #

Return the underlying tr of the transformer.

Methods

trans :: ReprOf tr -> tr Source #

Lift a tr to the transformer's.

unTrans :: tr -> ReprOf tr Source #

Unlift a tr from the transformer's.

trans1 :: (ReprOf tr -> ReprOf tr) -> tr -> tr Source #

Identity transformation for a unary symantic method.

trans2 :: (ReprOf tr -> ReprOf tr -> ReprOf tr) -> tr -> tr -> tr Source #

Identity transformation for a binary symantic method.

trans3 :: (ReprOf tr -> ReprOf tr -> ReprOf tr -> ReprOf tr) -> tr -> tr -> tr -> tr Source #

Identity transformation for a ternary symantic method.

Class SplitOnCharWithEmpty