All apps/cabal-install

cabal-install

cabal-install

The command-line tool for the Cabal build system.

Runs as cabal|macOS, Linux, Windows|github.com

Command form

ai-draft · 5 tasks · 9 fields

Common cabal-install jobs: build, run, test and update the package index. Configuration flags, constraints and project-file options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui cabal-install

cabal build

Build targets

Build targets and their dependencies.

Build targetsExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets
string
TasksEach one presets the form for one job
Build
targets
Build dependencies only
targetsonly_dependencies
ParametersOnly these flags are editable in the form
Dry run
boolean
--dry-run
Dependencies only
boolean
--only-dependencies
Configure only
boolean
--only-configure
Targets
Package, component, module or file targets; empty builds the package in the current directory.
string · positional 0 · repeatable

cabal run

Run an executable

Run an executable, test or benchmark target.

Run an executableExample values, fixed in this page — nothing here reaches a terminal
Basic
Target
string
TasksEach one presets the form for one job
Run
target
ParametersOnly these flags are editable in the form
Dry run
boolean
--dry-run
Target
Component, package or script path; may be empty if it identifies one executable.
string · positional 0

cabal test

Run tests

Build and run test suites.

Run testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Targets
string
TasksEach one presets the form for one job
Test
targets
ParametersOnly these flags are editable in the form
Dry run
boolean
--dry-run
Targets
Test suite or package targets; empty tests the current package.
string · positional 0 · repeatable

cabal update

Update package index

Update the package index from remote repositories.

Update package indexExample values, fixed in this page — nothing here reaches a terminal
Basic
Repositories
string
TasksEach one presets the form for one job
Update
repos
ParametersOnly these flags are editable in the form
Repositories
REPO or REPO,INDEX-STATE; empty updates all.
string · positional 0 · repeatable
SourcesEvery flag above is checked against these
docs
.. option:: --dry-run Do not download, build, or install anything, only print what would happen. .. option:: --only-configure Instead of performing a full build just run the configure step. Only accepted by the ``build`` command. .. option:: --only-dependencies --dependencies-only Install only the dependencies necessary to build t…
manualHEAD 2026-10-27

raw.githubusercontent.com

docs
.. option:: --dry-run Do not download, build, or install anything, only print what would happen. .. option:: --only-configure Instead of performing a full build just run the configure step. Only accepted by the ``build`` command. .. option:: --only-dependencies --dependencies-only Install only the dependencies necessary to build t…
manualHEAD 2026-10-27

raw.githubusercontent.com

docs
.. option:: --dry-run Do not download, build, or install anything, only print what would happen. .. option:: --only-configure Instead of performing a full build just run the configure step. Only accepted by the ``build`` command. .. option:: --only-dependencies --dependencies-only Install only the dependencies necessary to build t…
manualHEAD 2026-10-27

raw.githubusercontent.com

docs
.. option:: --dry-run Do not download, build, or install anything, only print what would happen. .. option:: --only-configure Instead of performing a full build just run the configure step. Only accepted by the ``build`` command. .. option:: --only-dependencies --dependencies-only Install only the dependencies necessary to build t…
manualHEAD 2026-10-27

raw.githubusercontent.com

docs
.. option:: --dry-run Do not download, build, or install anything, only print what would happen. .. option:: --only-configure Instead of performing a full build just run the configure step. Only accepted by the ``build`` command. .. option:: --only-dependencies --dependencies-only Install only the dependencies necessary to build t…
manualHEAD 2026-10-27

raw.githubusercontent.com

Before it fills your prompt, Otty checks the installed cabal against its version. A form that does not match your version is not offered.