Skip to content

Commit

Permalink
Add stack.yaml file (#463)
Browse files Browse the repository at this point in the history
* Add stack.yaml file to containers.

`stack setup` fails due to ChasingBottoms missing from Stackage

We default to lts-9.20 because lts-10.0 is currently not supported by many
development tools (such as intero) because ghc-mod does not yet support GHC
8.2 (DanielG/ghc-mod#900).

This was tested and works with resolvers lts-10.0 and lts-9.20.

Using older resolvers <=lts-7.24 causes a conflict with the package ranges
specified in containers.cabal.

* Remove `stack init` step in CONTRIBUTING.md.
  • Loading branch information
m-renaud authored Dec 28, 2017
1 parent 65eabd5 commit e631b6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ cabal bench
Minimum stack version: 1.6.1

```
stack init # If you haven't previously initialized stack
stack build
stack test
stack bench
Expand Down
11 changes: 11 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
flags: {}
packages:
- '.'

### Uncoment the resolver you want to use and re-run `stack build/test/bench`.
# resolver: lts-10.0
resolver: lts-9.20

### ChasingBottoms is only in Stackage snapshots lts-7.24 and below.
extra-deps:
- ChasingBottoms-1.3.1.3

0 comments on commit e631b6b

Please sign in to comment.