stack-1.6.5: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.New

Description

Create new a new project directory populated with a basic working project.

Synopsis

Documentation

new :: HasConfig env => NewOpts -> Bool -> RIO env (Path Abs Dir) Source #

Create a new project with the given options.

data NewOpts Source #

Options for creating a new project.

Constructors

NewOpts 

Fields

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 :: HasLogFunc env => RIO env (Set TemplateName) Source #

Get the set of templates.

listTemplates :: HasLogFunc env => RIO env () Source #

Display the set of templates accompanied with description if available.