stack-1.4.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Types.TemplateName

Description

Template name handling.

Synopsis

Documentation

data TemplatePath #

Constructors

AbsPath (Path Abs File)

an absolute path on the filesystem

RelPath (Path Rel File)

a relative path on the filesystem, or relative to the template repository

UrlPath String

a full URL

templateNameArgument :: Mod ArgumentFields TemplateName -> Parser TemplateName #

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) #

An argument which accepts a key:value pair for specifying parameters.

parseTemplateNameFromString :: String -> Either String TemplateName #

Parse a template name from a string.

mkTemplateName :: String -> Q Exp #

Make a template name.

templateName :: TemplateName -> Text #

Get a text representation of the template name.

templatePath :: TemplateName -> TemplatePath #

Get the path of the template.