glabrous-2.0.6.3: A template DSL library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Glabrous.Types

Documentation

data Token Source #

Constructors

Tag !Text 
Literal !Text 

Instances

Instances details
Generic Token Source # 
Instance details

Defined in Text.Glabrous.Types

Associated Types

type Rep Token :: Type -> Type #

Methods

from :: Token -> Rep Token x #

to :: Rep Token x -> Token #

Show Token Source # 
Instance details

Defined in Text.Glabrous.Types

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

Serialize Token Source # 
Instance details

Defined in Text.Glabrous.Types

Methods

put :: Putter Token #

get :: Get Token #

Eq Token Source # 
Instance details

Defined in Text.Glabrous.Types

Methods

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

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

type Rep Token Source # 
Instance details

Defined in Text.Glabrous.Types

type Rep Token = D1 ('MetaData "Token" "Text.Glabrous.Types" "glabrous-2.0.6.3-8pbE3xo2k6KBjGKpCTbYaz" 'False) (C1 ('MetaCons "Tag" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "Literal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))

newtype Template Source #

Constructors

Template 

Fields

Instances

Instances details
Generic Template Source # 
Instance details

Defined in Text.Glabrous.Types

Associated Types

type Rep Template :: Type -> Type #

Methods

from :: Template -> Rep Template x #

to :: Rep Template x -> Template #

Show Template Source # 
Instance details

Defined in Text.Glabrous.Types

Serialize Template Source # 
Instance details

Defined in Text.Glabrous.Types

Eq Template Source # 
Instance details

Defined in Text.Glabrous.Types

type Rep Template Source # 
Instance details

Defined in Text.Glabrous.Types

type Rep Template = D1 ('MetaData "Template" "Text.Glabrous.Types" "glabrous-2.0.6.3-8pbE3xo2k6KBjGKpCTbYaz" 'True) (C1 ('MetaCons "Template" 'PrefixI 'True) (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Token])))

newtype Context Source #

Constructors

Context 

Instances

Instances details
FromJSON Context Source # 
Instance details

Defined in Text.Glabrous.Types

ToJSON Context Source # 
Instance details

Defined in Text.Glabrous.Types

Show Context Source # 
Instance details

Defined in Text.Glabrous.Types

Eq Context Source # 
Instance details

Defined in Text.Glabrous.Types

Methods

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

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

data Result Source #

Constructors

Final !Text 
Partial 

Fields

Instances

Instances details
Show Result Source # 
Instance details

Defined in Text.Glabrous.Types

Eq Result Source # 
Instance details

Defined in Text.Glabrous.Types

Methods

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

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