| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Text.TemplateToolkitAST
Documentation
Instances
| Show IString Source # | |
| Generic IString Source # | |
| Binary IString Source # | |
| type Rep IString Source # | |
Defined in Text.TemplateToolkitAST type Rep IString = D1 (MetaData "IString" "Text.TemplateToolkitAST" "template-toolkit-0.1.1.0-B7i8p7wEmSL9kCkTZXDz11" False) (C1 (MetaCons "IString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "IVar" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Var))) | |
Constructors
| VString Text | |
| VIString [IString] | |
| VInt Integer | |
| VFloat Double | |
| VArray [Expr] | |
| VArrayRange Expr Expr | |
| VArrayV Array | |
| VHash [(String, Expr)] | |
| VHashV Hash | |
| VRef String | |
| VCode Stmt | |
| Undef |
Instances
| Show VarNode Source # | |
| Generic VarNode Source # | |
| Binary VarNode Source # | |
| type Rep VarNode Source # | |
Defined in Text.TemplateToolkitAST type Rep VarNode = D1 (MetaData "VarNode" "Text.TemplateToolkitAST" "template-toolkit-0.1.1.0-B7i8p7wEmSL9kCkTZXDz11" False) ((C1 (MetaCons "VarKey" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)) :+: C1 (MetaCons "VarIndex" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) :+: (C1 (MetaCons "VarMethod" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Expr])) :+: C1 (MetaCons "VarRef" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Var)))) | |
Constructors
| EVal Val | |
| EVar Var | |
| EAssign Var Expr | |
| EUnOp UnOp Expr | |
| EBinOp BinOp Expr Expr | |
| ETerOp Expr Expr Expr |
Instances
Instances
Instances
| Show Else Source # | |
| Generic Else Source # | |
| Binary Else Source # | |
| type Rep Else Source # | |
Defined in Text.TemplateToolkitAST type Rep Else = D1 (MetaData "Else" "Text.TemplateToolkitAST" "template-toolkit-0.1.1.0-B7i8p7wEmSL9kCkTZXDz11" False) (C1 (MetaCons "Else" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Stmt)) :+: C1 (MetaCons "Elsif" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Expr) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Stmt) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Else))))) | |
Constructors
| Seq | |
| SComment | |
| SText | |
| SIf | |
| SWhile | |
| SForeach | |
Fields
| |
| SNext | |
| SLast | |
| SBlock | |
| SProcess | |
Fields
| |
| SWrapper | |
Fields
| |
| SAssign | |
Fields
| |
| SExpr | |
| SFilter | |
Fields
| |
parseTemplateWithStmtId :: Text -> TName -> StmtId -> Either ParseError Stmt Source #
parseTemplate :: TName -> Text -> Either ParseError Stmt Source #