Skip to content

Commit 97e9f60

Browse files
committed
Bump LTS and nightly versions and fix errors
1 parent e4bff7e commit 97e9f60

File tree

24 files changed

+73
-68
lines changed

24 files changed

+73
-68
lines changed

etc/scripts/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-8.0
1+
resolver: lts-8.22

src/Stack/Package.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,11 @@ hpack pkgDir = do
11901190
when exists $ do
11911191
let fpt = T.pack (toFilePath hpackFile)
11921192
$logDebug $ "Running hpack on " <> fpt
1193+
#if MIN_VERSION_hpack(0,18,0)
1194+
r <- liftIO $ Hpack.hpackResult (Just $ toFilePath pkgDir)
1195+
#else
11931196
r <- liftIO $ Hpack.hpackResult (toFilePath pkgDir)
1197+
#endif
11941198
forM_ (Hpack.resultWarnings r) $ \w -> $logWarn ("WARNING: " <> T.pack w)
11951199
let cabalFile = T.pack (Hpack.resultCabalFile r)
11961200
case Hpack.resultStatus r of

src/Stack/Setup.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,10 +906,10 @@ downloadFromInfo programsDir downloadInfo tool = do
906906
".tar.gz" -> return TarGz
907907
".7z.exe" -> return SevenZ
908908
_ -> throwString $ "Error: Unknown extension for url: " ++ url
909-
relfile <- parseRelFile $ toolString tool ++ extension
909+
relativeFile <- parseRelFile $ toolString tool ++ extension
910910
path <- case url of
911911
(parseUrlThrow -> Just _) -> do
912-
let path = programsDir </> relfile
912+
let path = programsDir </> relativeFile
913913
ensureDir programsDir
914914
chattyDownload (T.pack (toolString tool)) downloadInfo path
915915
return path

stack-7.10.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-6.30
1+
resolver: lts-6.35
22
# docker:
33
# enable: true
44
# repo: fpco/stack-full
@@ -12,8 +12,6 @@ nix:
1212
packages:
1313
- zlib
1414
flags:
15-
stack:
16-
hide-dependency-versions: true
1715
mintty:
1816
win32-2-5: false
1917
extra-deps:

stack-nightly.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
resolver: nightly-2017-02-22
1+
resolver: nightly-2017-07-15
22
image:
33
containers:
44
- base: "fpco/stack-base" # see ./etc/docker/stack-base/Dockerfile
55
name: "fpco/stack-test"
6-
extra-deps:
7-
- store-0.4.1
8-
- store-core-0.4
96
nix:
107
# --nix on the command-line to enable.
118
enable: false
129
packages:
1310
- zlib
1411
- http-client-tls-0.3.4
12+
flags:
13+
mintty:
14+
win32-2-5: false
15+
extra-deps:
16+
- mintty-0.1.1

stack.cabal

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -204,44 +204,44 @@ library
204204
, conduit >= 1.2.8
205205
, conduit-extra >= 1.1.14
206206
, containers >= 0.5.5.1
207-
, cryptonite >= 0.19 && < 0.22
207+
, cryptonite >= 0.19 && < 0.24
208208
, cryptonite-conduit >= 0.1 && < 0.3
209209
, directory >= 1.2.1.0 && < 1.4
210210
, echo >= 0.1.3 && < 0.2
211211
, either
212-
, errors < 2.2
212+
, errors < 2.3
213213
, exceptions >= 0.8.0.2
214-
, extra < 1.6
214+
, extra >= 1.4.10 && < 1.6
215215
, fast-logger >= 2.3.1
216216
, filelock >= 0.1.0.1
217217
, filepath >= 1.3.0.2
218218
, fsnotify >= 0.2.1
219-
, generic-deriving < 1.12
220-
, ghc-prim
219+
, generic-deriving >= 1.10.5 && < 1.12
220+
, ghc-prim >= 0.4.0.0
221221
, hackage-security
222222
, hashable >= 1.2.3.2
223-
, hpc
223+
, hpc >= 0.6.0.2
224224
, http-client >= 0.5.3.3
225225
, http-client-tls >= 0.3.4
226226
, http-conduit >= 2.2.3
227227
, http-types >= 0.8.6 && < 0.10
228-
, lifted-async
228+
, lifted-async >= 0.9.1.1
229229
-- https://github.com/basvandijk/lifted-base/issues/31
230230
, lifted-base < 0.2.3.7 || > 0.2.3.7
231231
, memory >= 0.13 && < 0.15
232232
, microlens >= 0.3.0.0
233-
, microlens-mtl
233+
, microlens-mtl >= 0.1.10.0
234234
, mintty >= 0.1.1
235-
, monad-control
235+
, monad-control >= 1.0.1.0
236236
, monad-logger >= 0.3.13.1
237237
, monad-unlift < 0.3
238238
, mtl >= 2.1.3.1
239239
, network-uri
240240
, open-browser >= 0.2.1
241241
, optparse-applicative >= 0.13 && < 0.14
242-
, path >= 0.5.8 && <= 0.5.12
242+
, path >= 0.5.8 && < 0.6
243243
, path-io >= 1.1.0 && < 2.0.0
244-
, persistent >= 2.1.2 && < 2.7
244+
, persistent >= 2.1.2 && < 2.8
245245
-- persistent-sqlite-2.5.0.1 has a bug
246246
-- (see https://github.com/yesodweb/persistent/pull/561#issuecomment-222329087)
247247
, persistent-sqlite (>= 2.1.4 && < 2.5.0.1) || (> 2.5.0.1 && < 2.7)
@@ -252,7 +252,7 @@ library
252252
, resourcet >= 1.1.4.1
253253
, retry >= 0.6 && < 0.8
254254
, safe >= 0.3
255-
, safe-exceptions
255+
, safe-exceptions >= 0.1.5.0
256256
, semigroups >= 0.5 && < 0.19
257257
, split
258258
, stm >= 2.4.4
@@ -262,13 +262,13 @@ library
262262
, temporary >= 1.2.0.3
263263
, text >= 1.2.0.4
264264
, text-binary
265-
, text-metrics >= 0.1 && < 0.3
265+
, text-metrics >= 0.1 && < 0.4
266266
, time >= 1.4.2 && < 1.7
267267
, tls >= 1.3.8
268268
, transformers >= 0.3.0.0 && < 0.6
269269
, transformers-base >= 0.4.4
270270
, unicode-transforms >= 0.1 && <0.4
271-
, unix-compat
271+
, unix-compat >= 0.4.1.4
272272
, unordered-containers >= 0.2.5.1
273273
, vector >= 0.10.12.3 && < 0.13
274274
, vector-binary-instances
@@ -277,8 +277,8 @@ library
277277
, deepseq >= 1.4
278278
, hastache
279279
, project-template >= 0.2
280-
, zip-archive < 0.4
281-
, hpack >= 0.17.0 && < 0.18
280+
, zip-archive >= 0.2.3.7 && < 0.4
281+
, hpack >= 0.17.0 && < 0.19
282282
, store >= 0.4.1 && < 0.5
283283
, store-core >= 0.4 && < 0.5
284284
, annotated-wl-pprint
@@ -302,22 +302,22 @@ executable stack
302302
build-depends: Cabal >= 1.18.1.5 && < 1.25
303303
, base >=4.7 && < 5
304304
, bytestring >= 0.10.4.0
305-
, conduit
305+
, conduit >= 1.2.8
306306
, containers >= 0.5.5.1
307307
, directory >= 1.2.1.0 && < 1.4
308308
, either
309309
, filelock >= 0.1.0.1
310310
, filepath >= 1.3.0.2
311-
, hpack >= 0.17.0 && < 0.18
311+
, hpack >= 0.17.0 && < 0.19
312312
, http-client >= 0.5.3.3
313313
-- https://github.com/basvandijk/lifted-base/issues/31
314314
, lifted-base < 0.2.3.7 || > 0.2.3.7
315315
, microlens >= 0.3.0.0
316-
, monad-control
316+
, monad-control >= 1.0.1.0
317317
, monad-logger >= 0.3.13.1
318318
, mtl >= 2.1.3.1
319319
, optparse-applicative >= 0.13 && < 0.14
320-
, path >= 0.5.8
320+
, path >= 0.5.8 && < 0.6
321321
, path-io >= 1.1.0 && < 2.0.0
322322
, split
323323
, stack
@@ -329,7 +329,7 @@ executable stack
329329
cpp-options: -DWINDOWS
330330
if !flag(disable-git-info)
331331
cpp-options: -DUSE_GIT_INFO
332-
build-depends: gitrev >= 1.1 && < 1.3
332+
build-depends: gitrev >= 1.1 && < 1.4
333333
, optparse-simple >= 0.0.3
334334
if flag(hide-dependency-versions)
335335
cpp-options: -DHIDE_DEP_VERSIONS
@@ -356,40 +356,40 @@ test-suite stack-test
356356
, Stack.Untar.UntarSpec
357357
ghc-options: -threaded -Wall -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates
358358
build-depends: Cabal >= 1.18.1.5 && < 1.25
359-
, QuickCheck < 2.10
359+
, QuickCheck >= 2.8.2 && < 2.10
360360
, attoparsec < 0.14
361361
, base >=4.7 && <5
362-
, conduit
362+
, conduit >= 1.2.8
363363
, conduit-extra
364364
, containers >= 0.5.5.1
365-
, cryptonite >= 0.19 && < 0.22
365+
, cryptonite >= 0.19 && < 0.24
366366
, directory >= 1.2.1.0 && < 1.4
367367
, exceptions
368-
, filepath
368+
, filepath >= 1.3.0.2
369369
, hspec >= 2.2 && <2.5
370-
, hashable
371-
, http-client-tls
372-
, http-conduit
370+
, hashable >= 1.2.3.2
371+
, http-client-tls >= 0.3.4
372+
, http-conduit >= 2.2.3
373373
, monad-logger
374374
, neat-interpolation >= 0.3
375375
, optparse-applicative >= 0.13 && < 0.14
376-
, path >= 0.5.8
376+
, path >= 0.5.8 && < 0.6
377377
, path-io >= 1.1.0 && < 2.0.0
378378
, resourcet
379379
, retry >= 0.6 && < 0.8
380380
, stack
381-
, temporary
381+
, temporary >= 1.2.0.3
382382
, text
383383
, transformers >= 0.3.0.0 && < 0.6
384-
, mono-traversable >=0.10.2 && <1.1
385-
, th-reify-many
384+
, mono-traversable >= 0.10.2 && <1.1
385+
, th-reify-many >= 0.1.6
386386
, smallcheck
387-
, bytestring
387+
, bytestring >= 0.10.4.0
388388
, store >= 0.4.1 && < 0.5
389389
, vector >= 0.10.12.3 && < 0.13
390390
, unordered-containers
391391
, template-haskell >= 2.9.0.0 && < 2.12
392-
, yaml
392+
, yaml >= 0.8.20
393393
default-language: Haskell2010
394394
if os(windows)
395395
cpp-options: -DWINDOWS
@@ -414,10 +414,10 @@ test-suite stack-integration-test
414414
, hspec >= 2.2 && < 2.5
415415
, process >= 1.2.0.0 && < 1.5
416416
, resourcet
417-
, temporary
417+
, temporary >= 1.2.0.3
418418
, text
419419
, transformers >= 0.3.0.0 && < 0.6
420-
, unix-compat
420+
, unix-compat >= 0.4.1.4
421421
default-language: Haskell2010
422422

423423
-- This isn't actually needed to build stack-integration-test, but it makes it

stack.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-8.5
1+
resolver: lts-8.22
22
# docker:
33
# enable: true
44
# repo: fpco/stack-full
@@ -18,4 +18,3 @@ flags:
1818
win32-2-5: false
1919
extra-deps:
2020
- mintty-0.1.1
21-
- store-0.4.1

test/integration/lib/StackTest.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ isARM = arch == "arm"
181181

182182
-- | To avoid problems with GHC version mismatch when a new LTS major
183183
-- version is released, pass this argument to @stack@ when running in
184-
-- a global context. The LTS major version here should match that of
185-
-- the main @stack.yaml@.
186-
defaultResolverArg = "--resolver=lts-8.0"
184+
-- a global context. The LTS major version here should match that of
185+
-- the main @stack.yaml@ (and ordinarily be the `.0` minor version).
186+
--
187+
-- NOTE: currently using lts-8.22 instead of lts-8.0 because the `cyclic-test-deps` integration test is broken with lts-8.0 because a hackage metadata revision invalidated the snapshot (snapshot has `test-framework-quickcheck2-0.3.0.3` and `QuickCheck-2.9.2`, which used to be fine, but now test-framework-quickcheck2 was revised to have a `QuickCheck < 2.8` constraint).
188+
defaultResolverArg = "--resolver=lts-8.22"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-8.0
1+
resolver: lts-8.22
22
drop-packages:
33
- zlib

test/integration/tests/1337-unicode-everywhere/files/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-8.0
1+
resolver: lts-8.22
22
packages:
33
- '.'
44
extra-deps: []

0 commit comments

Comments
 (0)