symantic-document-0.1.2.20180831: Document symantics.

Safe HaskellNone
LanguageHaskell2010

Language.Symantic.Document.Term

Synopsis

Documentation

newtype Term Source #

Constructors

Term 

Fields

Instances
IsList Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Associated Types

type Item Term :: * #

Methods

fromList :: [Item Term] -> Term #

fromListN :: Int -> [Item Term] -> Term #

toList :: Term -> [Item Term] #

IsString Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Methods

fromString :: String -> Term #

Semigroup Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Methods

(<>) :: Term -> Term -> Term #

sconcat :: NonEmpty Term -> Term #

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

Monoid Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Methods

mempty :: Term #

mappend :: Term -> Term -> Term #

mconcat :: [Term] -> Term #

Decorable Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Colorable Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Breakable Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Indentable Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

Textable Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

type Item Term Source # 
Instance details

Defined in Language.Symantic.Document.Term

type Item Term = Term

data Reader Source #

Constructors

Reader 

Fields

textTerm :: Term -> Text Source #

Render a Term into a Text.

runTerm :: Term -> Builder Source #

Render a Term into a Builder.

writeSGR :: (Reader -> Bool) -> SGR -> Term -> Term Source #