Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
John Wiegley 80c0e742dc Remove reference to gitlib-utils il y a 9 ans
Stackage Resolve two compiler warnings il y a 9 ans
app Track multiple haskell-platform versions and determine GHC version il y a 9 ans
hp Different folder il y a 9 ans
patching Script fix il y a 9 ans
.gitignore Separate version selection and building #25 il y a 9 ans
.gitmodules Add blank .gitmodules il y a 9 ans
LICENSE Minor cleanups il y a 9 ans
README.md Update readme for later GHCs il y a 9 ans
Setup.hs Initial code il y a 9 ans
allowed.txt Remove reference to gitlib-utils il y a 9 ans
debian-bootstrap.sh Remove temporary hacks from debian-bootstrap.sh il y a 9 ans
full-run.sh full-run calls uploads il y a 9 ans
stackage.cabal Upload user checking il y a 9 ans

README.md

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.

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.