From the wiki :
Since the code is cabbalized, we can create a tarball using cabal-install directly (you can also use runhaskell Setup.hs sdist, but you need tar on your system 1 ):
$ cabal sdist Building source dist for haq-0.0... Source tarball created: dist/haq-0.0.tar.gz
This has the advantage that Cabal will do a little more validation and ensure that the tarball has the structure that HackageDB expects. Please note that this requires a LICENSE file. It packs the files needed to create a project; to include other files (e.g. Test.hs in the above example and our README), we need to add:
extra-source-files: Tests.hs README
into the .cabal file so that everything is included.
Dan
source share