Stable Haskell package sets: vetted consistent packages from Hackage
Go to file
Michael Snoyman 26e3408196 Allow containers-unicode-symbols #58
We need to be able to select which flags to pass based on the selected core
packages, so that we can pass containers-old.
2013-04-10 09:24:16 +03:00
app --no-docs 2013-03-01 12:28:58 +02:00
haskell-platform@73a58050d8 Initial code 2012-11-20 14:01:43 +02:00
Stackage Allow containers-unicode-symbols #58 2013-04-10 09:24:16 +03:00
.gitignore Separate version selection and building #25 2013-01-24 19:59:19 +02:00
.gitmodules Initial code 2012-11-20 14:01:43 +02:00
debian-bootstrap.sh Remove temporary hacks from debian-bootstrap.sh 2013-01-28 14:40:49 +02:00
LICENSE Minor cleanups 2012-11-29 18:41:59 +02:00
README.md Update README.md to show the new build steps (#37) 2013-01-26 19:52:07 +02:00
Setup.hs Initial code 2012-11-20 14:01:43 +02:00
stackage.cabal Global DB usage 2013-02-13 15:47:52 +02: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
cabal install cabal-dev
git clone https://github.com/fpco/stackage
cd stackage
git submodule update --init # get the Haskell Platform files
runghc app/stackage.hs select
runghc app/stackage.hs check
runghc app/stackage.hs build # takes a *long* time
runghc app/stackage.hs 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.