No description
Find a file
2013-10-14 07:11:43 +03:00
app More replacement tarball tweaks 2013-09-01 13:20:40 +03:00
hp Different folder 2013-06-30 09:03:40 +03:00
patching Include patch for bos/mysql#7 2013-10-10 10:21:47 +03:00
Stackage Upper bounds for #129 2013-10-14 07:11:36 +03:00
.gitignore Generate Hackage maps #38 2013-09-02 11:08:58 +03:00
.gitmodules Add blank .gitmodules 2013-06-30 09:17:45 +03:00
allowed.txt Allowed update 2013-09-30 08:51:44 +03:00
debian-bootstrap.sh Add repa-devil support (closes #105) 2013-09-01 11:52:39 +03:00
full-run.sh Remove call to uploads 2013-10-14 07:11:43 +03:00
LICENSE Minor cleanups 2012-11-29 18:41:59 +02:00
README.md Fix README closes #125 2013-10-07 15:01:24 +03:00
Setup.hs Initial code 2012-11-20 14:01:43 +02:00
stackage.cabal Loading package database respects custom tarballs 2013-09-01 13:10:02 +03:00

stackage

"Stable Hackage," tools for creating a vetted set of packages from Hackage.

A note about the codebase: the goal is to minimize dependencies and have the maximum range of supported compiler versions. Therefore, we avoid anything "complicated." For example, instead of using the text package, we use Strings everywhere.

Get your package included

In order to get your package included in the set of stable packages, you should send a pull request against this repository. In the Stackage.Config module, there's a function called defaultStablePackages. In general, to add a set of packages, you would add:

mapM_ (add "your-email-address") $ words
    "package1 package2 package3"

You can follow the examples of the other sets of packages in that function. Once you've done this, you should confirm that your newly added packages are compatible with the rest of stackage by building the package set.

You should also read the maintainers agreement.

Build the package set

As this project is just starting, we don't really have a solid set of steps. In general, the following set of commands should be good for getting started:

cabal update
git clone https://github.com/fpco/stackage
cd stackage
cabal sandbox init # requires cabal-install 1.18
cabal install --only-dependencies
cabal configure
cabal build
./dist/build/stackage/stackage select
./dist/build/stackage/stackage check
./dist/build/stackage/stackage build # takes a *long* time
./dist/build/stackage/stackage test # also takes a *long* time

Notes

Make sure to have Cabal-1.16 installed in either your global or user database, regardless of any sandboxing, as custom build types require it to be present. You must build with cabal-install 1.16, due to several important bug fixes.

Using a non-Haskell Platform versions of GHC

By default, Stackage bases itself off of the Haskell Platform for determining which packages are core packages, and locks down package versions to match the Haskell Platform selections. This works fine when you are compiling with the same version of GHC as the Haskell Platform was built on. If you're using a different version of GHC, you'll probably need to use the following options for the select call:

--no-platform --use-global-db

The former says to disregard Haskell Platform package versions, and the latter says to determine which packages are core packages based on their presence in the global package database.