HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

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
  1. Commands
  2. Target generation
  3. Prompts
Synopsis

Commands

Target generation

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