Scroll to navigation

CABAL-DEBIAN(1) General Commands Manual CABAL-DEBIAN(1)


cabal-debian - create Debian package meta data from a Haskell cabal file.


cabal-debian [flags]


cabal-debian will generated the Debian meta data for a Debian package from the cabal file of a Haskell package. The program expects to find the package's <pkgname>.cabal file in the directory from which it was run.

Pass this prefix if we need to configure the package

Compile with GHC.

Compile with HUGS.

Compile with JHC.

Compile with NHC.

Show this help text.

Override the default package name.
Don't generate API docs.
Don't generate profiling libraries.
Don't generate optimised code.

Don't split object files to save space.

Set given flags in Cabal conditionals.

Override the default package release.

Override the default output directory ("./debian").

Change build verbosity.

Override the default package version.

Override the Maintainer name and email in $DEBEMAIL/$EMAIL/$DEBFULLNAME/$FULLNAME.

Generate a new debianization, replacing any existing one. One of --debianize, --substvar, or --update-debianization is required.

Write out the list of dependencies required for the dev, prof or doc package depending on the argument. This value can be added to the appropriate substvars file.

Update an existing debianization.


This manual page was originally written by Erik de Castro Lopo <> for the Debian GNU/Linux system (but may be used by others).

May 10, 2010