---
name: "dh_haskell_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_depends"
---

# dh\_haskell\_depends(1)

calculates Haskell dependencies on Cabalized libraries

## NAME

dh\_haskell\_depends - calculates Haskell dependencies on Cabalized libraries

## SYNOPSIS

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

## DESCRIPTION

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

It automates building libraries for the different supported Haskell systems in Debian.

This script writes the debian/$package.substvars file, including in it the haskell:Depends, haskell:Recommends, haskell:Suggests and haskell:Extra-Depends variable.  So, to use this package, include in the Depends: field in debian/control ${haskell:Depends}, and do the same for Recommends, Suggests and Extra-Depends.

## BUGS

hugs and ghc are the only supported targets at the moment.  Cabal does not yet support nhc98.

## SEE ALSO

[**dh\_haskell\_provides**(1)](/dh_haskell_provides/1.md) [**dh\_haskell\_shlibdeps**(1)](/dh_haskell_shlibdeps/1.md) [**dh\_haskell\_extra\_depends**(1)](/dh_haskell_extra_depends/1.md) [**debhelper**(7)](/debhelper/7.md)

## AUTHOR

John Goerzen \<jgoerzen@complete.org\>

Based on ideas in dh\_python by Josselin Mouette \<joss@debian.org\>
