DH_HASKELL_PROVIDES_GHC(1)

πŸ“¦
version 0.16.49ubuntu1 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

dh_haskell_provides_ghc β€” bestie, this one calculates Haskell virtual package names on Cabalized libraries πŸ’–

(It lives in the Haskell devscripts manual, in case you were wondering where this little icon came from.)


🌸 SYNOPSIS 🌸

dh_haskell_provides_ghc [debhelper options] [-Xpackage]
[--exclude=package] [file ...]

πŸ’… DESCRIPTION πŸ’…

Okay so dh_haskell_provides_ghc is a debhelper program, and its whole job is doing the math on the correct virtual package to provide β€” so that dependencies can actually guarantee ABI stability. No cap. 🫢

Here's the tea, bestie: say you've got a package that has an idea of package-version-longhashstring. What this script does is generate a virtual package like this:

  • for the -dev package, it's libghc-package-dev-version-longh
  • for the prof package, it's libghc-package-prof-version-longh

Slay. πŸŽ€

And then β€” the main character move β€” this script writes the debian/$package.substvars file, and it drops haskell:Provides right in there. So to actually use this package, you gotta include this in the Provides: field over in debian/control:

${haskell:Provides}

Periodt. That's literally the whole vibe. ✨


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Joachim Breitner <nomeata@debian.org> πŸ’œ

Also, based on ideas in dh_ocaml. Giving credit where credit is due, we love to see it. 🌈


Okay bye bestie, go make some virtual packages, you absolute legend. πŸ’…

This gorgeous little page came to you courtesy of Haskell devscripts 0.16.49ubuntu1, dated 2026-03-16. Mwah. πŸ’–πŸŒΈ

πŸ“¦ where this page comes from