Skip to content

Commit 95fa110

Browse files
authored
static-stack: README: Mention stack on GHC 8.2.2
Fixes #81.
1 parent 38ef5a4 commit 95fa110

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

static-stack/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ If you get an error such as:
1818
1919
then update the `hackageSnapshot` date in `default.nix` to a date that includes the package and version.
2020

21+
### Temporarily: Use `stack-lts-12.yaml`
22+
23+
See #81: Stack's main `stack.yaml` uses GHC 8.2.2, which is no longer in recent `nixpkgs`.
24+
25+
If you get an error mentioning `error: attribute 'ghc822' in selection path 'haskell.compiler.ghc822' not found`, then build stack the same way [as our CI does it](https://github.com/nh2/static-haskell-nix/blob/38ef5a4e00b5f6fb421014829320d85899483874/.buildkite/pipeline.yml#L50-L64).
26+
27+
Alternatively you can use an older version of `static-haskell-nix` that pins an older version of `nixpkgs` that still has `ghc822`.
28+
29+
This issue will likely go away very soon given that [stack is as-of-writing upgrading `stack.yaml` to a newer LTS](https://github.com/commercialhaskell/stack/pull/5162).
30+
2131
## Binary caches for faster building (optional)
2232

2333
You can use the caches described in the [top-level README](../README.md#binary-caches-for-faster-building-optional) for faster building.

0 commit comments

Comments
 (0)