haskellcabalhackage

How to create a package to upload to Hackage?


How do I generate the appropriate package file?

The hackage upload page has a link to: https://www.haskell.org/cabal/users-guide/installing-packages.html#setup-sdist but after reading that I'm still unsure.

I've tried:

cabal setup sdist
cabal: unrecognised command: setup (try --help)

As well as:

setup sdist
zsh: command not found: setup

Solution

  • To generate the package:

    Thanks to @ppb