mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-30 08:00:25 +01:00
Build with Stack, LTS Haskell and GHC
This commit is contained in:
parent
4e27a1329f
commit
fcdf3fb77b
@ -26,7 +26,20 @@ After doing that commit with a message like "add foo-bar" and send a pull reques
|
|||||||
The continuous integration job will do some checks to see if your package's dependencies are up-to-date.
|
The continuous integration job will do some checks to see if your package's dependencies are up-to-date.
|
||||||
|
|
||||||
The CI job notably doesn't compile packages, run tests, build documentation, or find missing C libraries.
|
The CI job notably doesn't compile packages, run tests, build documentation, or find missing C libraries.
|
||||||
If you want to be proactive or if CI fails, you can make sure that your package builds against the newest versions of all dependencies like this:
|
If you want to be proactive or if CI fails, you can make sure that your package builds against the latest nightly:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ stack build --resolver nightly --haddock --test --bench --no-run-benchmarks
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if some dependencies haven't made it into Stackage Nightly yet:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ rm -f stack.yaml && stack init --resolver nightly --solver
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, alternatively, with `cabal` (may end up using older dependency
|
||||||
|
versions):
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ghc --version # Should be the same as the latest nightly, it's in the title of https://www.stackage.org/nightly
|
$ ghc --version # Should be the same as the latest nightly, it's in the title of https://www.stackage.org/nightly
|
||||||
@ -139,6 +152,13 @@ If your package ends up being temporarily disabled from Stackage
|
|||||||
Nightly, please simply send a pull request to add it back once it and
|
Nightly, please simply send a pull request to add it back once it and
|
||||||
its dependencies are compatible with the newest GHC version.
|
its dependencies are compatible with the newest GHC version.
|
||||||
|
|
||||||
|
Note that it is _not_ a goal of LTS Haskell to track the latest
|
||||||
|
version of GHC. If you want the latest and greatest, Stackage Nightly
|
||||||
|
is your best bet. In particular, LTS Haskell will often—but not
|
||||||
|
always—avoid upgrading to the first point release of GHC
|
||||||
|
releases (e.g., 8.2.1) to allow further testing and to get the
|
||||||
|
benefits of the first bugfix release (e.g., 8.2.2).
|
||||||
|
|
||||||
## Adding a package to an LTS snapshot
|
## Adding a package to an LTS snapshot
|
||||||
|
|
||||||
The steps above affect the Stackage Nightly builds, but do not directly affect
|
The steps above affect the Stackage Nightly builds, but do not directly affect
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user