Skip to content

Commit d8231e7

Browse files
dbaynardborsboom
authored andcommitted
Update to latest lts-11 and nightly resolvers
- lts-11.19 - nightly-2018-07-31
1 parent 864c35e commit d8231e7

File tree

46 files changed

+62
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+62
-77
lines changed

.travis.yml

Lines changed: 3 additions & 3 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.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]}}
32+
- env: BUILD=stack GHCVER=8.4.3 STACK_YAML=stack-nightly.yaml
33+
compiler: ": #stack 8.4.3"
34+
addons: {apt: {packages: [ghc-8.4.3, 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"

doc/GUIDE.md

Lines changed: 6 additions & 6 deletions

etc/scripts/install-many-stack-releases.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env stack
22
{- stack script
3-
--resolver lts-11.6
3+
--resolver lts-11.19
44
--package base
55
--package directory
66
--package filepath

etc/scripts/stack.yaml

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

src/test/Stack/ConfigSpec.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
{-# LANGUAGE TemplateHaskell #-}
55
module Stack.ConfigSpec where
66

7+
import Control.Arrow
78
import Data.Aeson.Extended
89
import Data.Yaml
910
import Path
@@ -165,7 +166,7 @@ spec = beforeAll setup $ do
165166
it "is parseable" $ \_ -> do
166167
curDir <- getCurrentDir
167168
let parsed :: Either String (Either String (WithJSONWarnings ConfigMonoid))
168-
parsed = parseEither (parseConfigMonoid curDir) <$> decodeEither defaultConfigYaml
169+
parsed = parseEither (parseConfigMonoid curDir) <$> left show (decodeEither' defaultConfigYaml)
169170
case parsed of
170171
Right (Right _) -> return () :: IO ()
171172
_ -> fail "Failed to parse default config yaml"

src/test/Stack/StoreSpec.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ addMinAndMaxBounds xs =
5151
(if (minBound :: a) `notElem` xs then [minBound] else []) ++
5252
(if (maxBound :: a) `notElem` xs && (maxBound :: a) /= minBound then maxBound : xs else xs)
5353

54-
$(do let ns = [ ''Int64, ''Word64, ''Word8
55-
]
56-
f n = [d| instance Monad m => Serial m $(conT n) where
57-
series = generate (\_ -> addMinAndMaxBounds [0, 1]) |]
58-
concat <$> mapM f ns)
59-
6054
$(do let tys = [ ''InstalledCacheInner
6155
-- FIXME , ''PackageCache
6256
-- FIXME , ''LoadedSnapshot

src/test/Stack/Types/BuildPlanSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Stack.Types.BuildPlanSpec where
55
import Data.Aeson.Extended (WithJSONWarnings(..))
66
import Data.ByteString (ByteString)
77
import qualified Data.ByteString.Char8 as S8
8-
import Data.Yaml (decode)
8+
import Data.Yaml (decodeThrow)
99
import Stack.Types.BuildPlan
1010
import Test.Hspec
1111

@@ -15,7 +15,7 @@ spec =
1515
describe "Archive" $ do
1616
describe "github" $ do
1717
let decode' :: ByteString -> Maybe (WithJSONWarnings (PackageLocation Subdirs))
18-
decode' = decode
18+
decode' = decodeThrow
1919

2020
it "'github' and 'commit' keys" $ do
2121
let contents :: ByteString

stack-nightly.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2018-04-25
1+
resolver: nightly-2018-07-31
22

33
# docker:
44
# enable: true
@@ -13,14 +13,6 @@ nix:
1313
packages:
1414
- zlib
1515
- unzip
16-
extra-deps:
17-
- bitarray-0.0.1.1
18-
- fsnotify-0.2.1.2
19-
- project-template-0.2.0.1
20-
- regex-applicative-text-0.1.0.1
21-
- unicode-transforms-0.3.4
22-
- githash-0.1.0.0@rev:0
23-
- hpack-0.29.0@rev:0
2416

2517
ghc-options:
2618
"$locals": -fhide-source-paths

stack.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-11.6
1+
resolver: lts-11.19
22

33
# docker:
44
# enable: true
@@ -17,23 +17,22 @@ flags:
1717
hide-dependency-versions: true
1818
supported-build: true
1919
extra-deps:
20-
- rio-0.1.1.0@rev:0
2120
- Cabal-2.2.0.1@rev:0
22-
- hpack-0.29.0@rev:0
21+
- infer-license-0.2.0@rev:0
22+
- hpack-0.29.5@rev:0
2323
- http-api-data-0.3.8.1@rev:0
24-
- githash-0.1.0.0@rev:0
24+
- githash-0.1.0.1@rev:0
2525

26-
# Avoid https://github.com/commercialhaskell/stack/issues/3922
26+
# Avoid https://github.com/commercialhaskell/stack/issues/4125
2727
# (triggered because later versions of persistent transitively depends
2828
# on haskell-src-exts, which needs the 'happy' build tool)
29+
# THIS IS FIXED AS OF STACK 1.8, but keep these here until next major
30+
# version to maintain the ability to build stack with older versions.
2931
- persistent-2.7.1@rev:0
3032
- persistent-sqlite-2.6.4@rev:0
3133
- resourcet-1.1.11@rev:0
32-
- conduit-1.2.13@rev:0
34+
- conduit-1.2.13.1@rev:0
3335
- conduit-extra-1.2.3.2@rev:0
3436

35-
# Not present until resolver lts-11.9
36-
- ansi-terminal-0.8.0.4
37-
3837
ghc-options:
3938
"$locals": -fhide-source-paths

test/integration/IntegrationSpec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ test runghc env' currDir origStackRoot newHome newStackRoot name = it name $ wit
9797

9898
(ClosedStream, outSrc, errSrc, sph) <- streamingProcess cp
9999
(out, err, ec) <- runConcurrently $ (,,)
100-
<$> Concurrently (outSrc $$ sinkLbs)
101-
<*> Concurrently (errSrc $$ sinkLbs)
100+
<$> Concurrently (outSrc `connect` sinkLbs)
101+
<*> Concurrently (errSrc `connect` sinkLbs)
102102
<*> Concurrently (waitForStreamingProcess sph)
103103
when (ec /= ExitSuccess) $ throwIO $ TestFailure out err ec
104104
where
@@ -120,7 +120,7 @@ instance Exception TestFailure
120120

121121
copyTree :: (FilePath -> Bool) -> FilePath -> FilePath -> IO ()
122122
copyTree toCopy src dst =
123-
runResourceT (sourceDirectoryDeep False src $$ CL.mapM_ go)
123+
runResourceT (sourceDirectoryDeep False src `connect` CL.mapM_ go)
124124
`catch` \(_ :: IOException) -> return ()
125125
where
126126
go srcfp = when (toCopy srcfp) $ liftIO $ do

0 commit comments

Comments
 (0)