Main driver for interactive prompt code.
Modulecabal-install-3.18.1.0Haskell2010
Distribution.Client.Init.Interactive.Command
Implementation of the 'cabal init' command, which creates an initial .cabal file for a project.
Contents
Synopsis
- value createProject
- value genPkgDescription
- value genLibTarget
- value genExeTarget
- value genTestTarget
- value cabalVersionPrompt
- value packageNamePrompt
- value versionPrompt
- value licensePrompt
- value authorPrompt
- value emailPrompt
- value homepagePrompt
- value synopsisPrompt
- value categoryPrompt
- value mainFilePrompt
- value testDirsPrompt
- value languagePrompt
- value noCommentsPrompt
- value appDirsPrompt
- value dependenciesPrompt
- value srcDirsPrompt
- Packagecabal-install-3.18.1.0
- Exports21
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCommand.hs
Commands
Target generation
Extract flags relevant to a package description and interactively generate a PkgDescription object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Extract flags relevant to a library target and interactively generate a LibTarget object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Extract flags relevant to a executable target and interactively generate a ExeTarget object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Extract flags relevant to a test target and interactively generate a TestTarget object for creation. If the user specifies the generation of a simple package, then a simple target with defaults is generated.
Note: this workflow is only enabled if the user answers affirmatively when prompted, or if the user passes in the flag to enable test suites at command line.
Prompts
Ask for the application root directory.
Ask for the source (library) root directory.