Safe Haskell | None |
---|---|
Language | Haskell2010 |
Template name handling.
- data TemplateName = TemplateName !Text !TemplatePath
- data TemplatePath
- data TemplateInfo = TemplateInfo {}
- templateNameArgument :: Mod ArgumentFields TemplateName -> Parser TemplateName
- templateParamArgument :: Mod OptionFields (Text, Text) -> Parser (Text, Text)
- parseTemplateNameFromString :: String -> Either String TemplateName
- mkTemplateName :: String -> Q Exp
- templateName :: TemplateName -> Text
- templatePath :: TemplateName -> TemplatePath
Documentation
data TemplateName Source #
A template name.
data TemplatePath Source #
templateNameArgument :: Mod ArgumentFields TemplateName -> Parser TemplateName Source #
An argument which accepts a template name of the format
foo.hsfiles
or foo
, ultimately normalized to foo
.
templateParamArgument :: Mod OptionFields (Text, Text) -> Parser (Text, Text) Source #
An argument which accepts a key:value
pair for specifying parameters.
parseTemplateNameFromString :: String -> Either String TemplateName Source #
Parse a template name from a string.
templateName :: TemplateName -> Text Source #
Get a text representation of the template name.
templatePath :: TemplateName -> TemplatePath Source #
Get the path of the template.