Skip to content

Commit 4c04fcf

Browse files
committed
Add stack-nightly.yaml
Note that this works on macOS, but does not work on Linux, because fsnotify depends on a version of hinotify on Linux that doesn't support GHC 8.4.
1 parent bdafa1a commit 4c04fcf

File tree

4 files changed

+35
-6
lines changed

4 files changed

+35
-6
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ matrix:
2929
compiler: ": #stack 8.2.2"
3030
addons: {apt: {packages: [ghc-8.2.2, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
3131

32-
## Disabled because 'stack-nightly.yaml' removed since the latest working
33-
## nightly snapshot the sams as the LTS-11
34-
#- env: BUILD=stack GHCVER=8.2.2 STACK_YAML=stack-nightly.yaml
35-
# compiler: ": #stack 8.2.2"
36-
# addons: {apt: {packages: [ghc-8.2.2, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
32+
- env: BUILD=stack GHCVER=8.4.1 STACK_YAML=stack-nightly.yaml
33+
compiler: ": #stack 8.4.1"
34+
addons: {apt: {packages: [ghc-8.4.1, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
3735

3836
- env: BUILD=stack GHCVER=8.2.2 STACK_YAML=stack.yaml
3937
compiler: ": #stack 8.2.2 osx"
@@ -50,6 +48,12 @@ matrix:
5048
compiler: ": #stack 8.2.2 osx"
5149
os: osx
5250

51+
## Expected to fail because fsnotify depends on a version of hinotify
52+
## that doesn't support GHC 8.4
53+
- env: BUILD=stack GHCVER=8.4.1 STACK_YAML=stack-nightly.yaml
54+
compiler: ": #stack 8.4.1"
55+
addons: {apt: {packages: [ghc-8.4.1, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
56+
5357
# Note: the distinction between `before_install` and `install` is not important.
5458
# - in before_install we install build tools
5559
# - in install we install (haskell) dependencies

package.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ library:
131131
source-dirs: src/
132132
ghc-options:
133133
- -fwarn-identities
134+
verbatim:
135+
# TODO: replace with 'generated-exposed-modules' after stack-1.7 is released.
136+
# Using 'verbatim' to support older hpack version.
137+
autogen-modules: Paths_stack
134138
exposed-modules:
135139
- Control.Concurrent.Execute
136140
- Data.Aeson.Extended

stack-nightly.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
resolver: nightly-2018-04-20
2+
3+
# docker:
4+
# enable: true
5+
# repo: fpco/stack-full
6+
# image:
7+
# containers:
8+
# - base: "fpco/stack-base" # see ./etc/docker/stack-base/Dockerfile
9+
# name: "fpco/stack-test"
10+
nix:
11+
# --nix on the command-line to enable.
12+
enable: false
13+
packages:
14+
- zlib
15+
- unzip
16+
extra-deps:
17+
- bitarray-0.0.1.1
18+
- fsnotify-0.2.1.1
19+
- project-template-0.2.0.1
20+
- regex-applicative-text-0.1.0.1
21+
- unicode-transforms-0.3.4

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ flags:
1818
hide-dependency-versions: true
1919
supported-build: true
2020
extra-deps:
21-
- rio-0.1.0.0@rev:0
21+
- rio-0.1.1.0@rev:0
2222
- Cabal-2.2.0.1@rev:0
2323
- hpack-0.28.2
2424
- http-api-data-0.3.8.1@rev:0

0 commit comments

Comments
 (0)