Safe Haskell | None |
---|---|
Language | Haskell2010 |
Create new a new project directory populated with a basic working project.
- new :: (StackM env m, HasConfig env) => NewOpts -> Bool -> m (Path Abs Dir)
- data NewOpts = NewOpts {}
- defaultTemplateName :: TemplateName
- templateNameArgument :: Mod ArgumentFields TemplateName -> Parser TemplateName
- getTemplates :: StackM env m => m (Set TemplateName)
- data TemplateName
- listTemplates :: StackM env m => m ()
Documentation
new :: (StackM env m, HasConfig env) => NewOpts -> Bool -> m (Path Abs Dir) Source #
Create a new project with the given options.
Options for creating a new project.
NewOpts | |
|
defaultTemplateName :: TemplateName Source #
The default template name you can use if you don't have one.
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
.
getTemplates :: StackM env m => m (Set TemplateName) Source #
Get the set of templates.
data TemplateName Source #
A template name.
listTemplates :: StackM env m => m () Source #
Display the set of templates accompanied with description if available.