Skip to content

Commit 783158f

Browse files
committed
stack-nightly: bump to GHC 8.4.2 and newer fsnotify
1 parent 4c04fcf commit 783158f

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +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-
- 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]}}
32+
- env: BUILD=stack GHCVER=8.4.2 STACK_YAML=stack-nightly.yaml
33+
compiler: ": #stack 8.4.2"
34+
addons: {apt: {packages: [ghc-8.4.2, alex-3.1.7, happy-1.19.5], sources: [hvr-ghc]}}
3535

3636
- env: BUILD=stack GHCVER=8.2.2 STACK_YAML=stack.yaml
3737
compiler: ": #stack 8.2.2 osx"
@@ -48,12 +48,6 @@ matrix:
4848
compiler: ": #stack 8.2.2 osx"
4949
os: osx
5050

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-
5751
# Note: the distinction between `before_install` and `install` is not important.
5852
# - in before_install we install build tools
5953
# - in install we install (haskell) dependencies
@@ -119,7 +113,6 @@ install:
119113
120114
script:
121115
- GHC_OPTIONS="-Werror"
122-
- if [ $GHCVER = 8.2.2 ]; then GHC_OPTIONS="$GHC_OPTIONS -Wno-missing-home-modules"; fi
123116
- |
124117
set -ex
125118
case "$BUILD" in

package.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ library:
134134
verbatim:
135135
# TODO: replace with 'generated-exposed-modules' after stack-1.7 is released.
136136
# Using 'verbatim' to support older hpack version.
137-
autogen-modules: Paths_stack
137+
autogen-modules: |
138+
Paths_stack
138139
exposed-modules:
139140
- Control.Concurrent.Execute
140141
- Data.Aeson.Extended
@@ -272,7 +273,15 @@ executables:
272273
stack:
273274
main: Main.hs
274275
source-dirs: src/main
275-
generated-other-modules: Build_stack
276+
verbatim:
277+
# TODO: replace with 'generated-other-modules' after stack-1.7 is released.
278+
# Using 'verbatim' to support older hpack version.
279+
autogen-modules: |
280+
Build_stack,
281+
Paths_stack
282+
other-modules:
283+
- Build_stack
284+
- Paths_stack
276285
ghc-options:
277286
- -threaded
278287
- -rtsopts

stack-nightly.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2018-04-20
1+
resolver: nightly-2018-04-23
22

33
# docker:
44
# enable: true
@@ -15,7 +15,7 @@ nix:
1515
- unzip
1616
extra-deps:
1717
- bitarray-0.0.1.1
18-
- fsnotify-0.2.1.1
18+
- fsnotify-0.2.1.2
1919
- project-template-0.2.0.1
2020
- regex-applicative-text-0.1.0.1
2121
- unicode-transforms-0.3.4

0 commit comments

Comments
 (0)