Safe Haskell | None |
---|---|
Language | Haskell2010 |
Create new a new project directory populated with a basic working project.
- new :: (HasConfig r, MonadReader r m, MonadLogger m, MonadCatch m, MonadIO m, HasHttpManager r) => NewOpts -> Bool -> m (Path Abs Dir)
- data NewOpts = NewOpts {}
- defaultTemplateName :: TemplateName
- templateNameArgument :: Mod ArgumentFields TemplateName -> Parser TemplateName
- getTemplates :: (MonadIO m, MonadReader r m, HasHttpManager r, MonadCatch m) => m (Set TemplateName)
- data TemplateName
- listTemplates :: (MonadIO m, MonadReader r m, HasHttpManager r, MonadCatch m) => m ()
Documentation
new :: (HasConfig r, MonadReader r m, MonadLogger m, MonadCatch m, MonadIO m, HasHttpManager r) => 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 :: (MonadIO m, MonadReader r m, HasHttpManager r, MonadCatch m) => m (Set TemplateName) Source
Get the set of templates.
data TemplateName Source
A template name.
listTemplates :: (MonadIO m, MonadReader r m, HasHttpManager r, MonadCatch m) => m () Source
Display the set of templates accompanied with description if available.