---
name: "dh_haskell_extra_depends"
section: "1"
platform: "linux"
package: "haskell-devscripts-minimal"
version: "0.16.0"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_haskell_extra_depends"
---

# dh\_haskell\_extra\_depends(1)

generate the extra-depends file in Haskell packages

## NAME

dh\_haskell\_extra\_depends - generate the extra-depends file in Haskell packages

## SYNOPSIS

**dh\_extra\_haskell\_depends** \[*debhelper options*\] \[**-X***package*\] \[**--exclude=***package*\] \[*file* ...\]

## DESCRIPTION

dh\_haskell\_extra\_depends is a debhelper program that helps with calculating dependencies for building Haskell libraries.

Since Haskell libraries are statically linked, packagers that use Haskell libraries cannot rely on the fact that dynamical libraries are dependencies of their packages to be sure that possible runtime data packages are installed at execution time. The extra dependencies mechanism allows libraries to declare some packages that are to be added to the dependency list of each package that uses them to build.

This script scans the Haskell dependencies and harvest extra dependencies information, putting them in the file debian/extra-depends, which is later used by dh\_haskell\_depends to be included in the substvars file.

## BUGS

None, as far as we know. :-)

## SEE ALSO

[**dh\_haskell\_depends**(1)](/dh_haskell_depends/1.md) [**debhelper**(7)](/debhelper/7.md)

## AUTHOR

Giovanni Mascellani \<gio@debian.org\>
