简体   繁体   中英

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

To generate the package:

  • With cabal: cabal sdist

  • With stack: stack sdist

Thanks to @ppb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM