Skip to content

Commit 8acaa79

Browse files
committed
Snapshot and dependency updates
Note: this upgrades `rio` and switches to `readProcessWait` and `readProcessWait_`.
1 parent 23b1f58 commit 8acaa79

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

snapshot-lts-12.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ packages:
99
- yaml-0.10.4.0@rev:0 #for hpack-0.31
1010
- persistent-2.9.2@rev:0
1111
- persistent-sqlite-2.9.3@rev:0
12-
- rio-0.1.9.2@rev:0
12+
- rio-0.1.10.0@rev:0
1313
- ansi-terminal-0.9@rev:0
1414
- ansi-wl-pprint-0.6.8.2@rev:1 # for ansi-terminal-0.9
1515
- hedgehog-0.6.1@rev:4 # for ansi-terminal-0.9
1616
- optparse-simple-0.1.1.2
17+
- typed-process-0.2.6.0@rev:0 # for rio-0.1.10.0
1718
- git: https://github.com/snoyberg/filelock.git
1819
commit: 97e83ecc133cd60a99df8e1fa5a3c2739ad007dc
1920

snapshot-nightly.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
resolver: nightly-2019-06-06
1+
resolver: nightly-2019-07-11
22
name: snapshot-for-building-stack-with-ghc-8.6.5
33

44
packages:
55
- amazonka-1.6.1@rev:0
66
- amazonka-s3-1.6.1@rev:0
77
- amazonka-core-1.6.1@rev:0
88
# For amazonka-1.6.1 (check for amazonka update allowing http-client-0.6)
9+
# Once fixed, remove bounds from `package.yaml` (also under `subs`)
910
- http-client-0.5.14@rev:0
11+
- cryptonite-0.26@rev:0
1012
- git: https://github.com/snoyberg/filelock.git
1113
commit: 97e83ecc133cd60a99df8e1fa5a3c2739ad007dc
1214

snapshot.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ packages:
1919
- process-1.6.3.0@sha256:fc77cfe75a9653b8c54ae455ead8c06cb8adc4d7a340984d84d8ca880b579919,2370 #because of https://github.com/haskell/process/pull/101
2020
- persistent-2.9.2@rev:0
2121
- persistent-sqlite-2.9.3@rev:0
22-
- rio-0.1.9.2@rev:0
22+
- rio-0.1.10.0@rev:0
2323
- ansi-wl-pprint-0.6.8.2@rev:1 # for ansi-terminal-0.9
2424
- hedgehog-0.6.1@rev:4 # for ansi-terminal-0.9
25+
- typed-process-0.2.6.0@rev:0 # for rio-0.1.10.0
2526
- git: https://github.com/snoyberg/filelock.git
2627
commit: 97e83ecc133cd60a99df8e1fa5a3c2739ad007dc
2728

src/Stack/Build/Execute.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} installedMap
16561656
ec
16571657
<- withWorkingDir (toFilePath eeTempDir)
16581658
$ proc "haddock" ["--hyperlinked-source"]
1659-
$ \pc -> withProcess
1659+
$ \pc -> withProcessWait
16601660
(setStdout createSource $ setStderr createSource pc) $ \p ->
16611661
runConcurrently
16621662
$ Concurrently (runConduit $ getStdout p .| CL.sinkNull)
@@ -2026,7 +2026,7 @@ singleTest topts testsToRun ac ee task installedMap = do
20262026
$ setStdout output
20272027
$ setStderr output
20282028
pc0
2029-
withProcess pc $ \p -> do
2029+
withProcessWait pc $ \p -> do
20302030
case (getStdout p, getStderr p) of
20312031
(Nothing, Nothing) -> pure ()
20322032
(Just x, Just y) -> concurrently_ x y

src/Stack/Prelude.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import System.IO.Echo (withoutInputEcho)
4040
import qualified Data.Conduit.Binary as CB
4141
import qualified Data.Conduit.List as CL
4242
import Data.Conduit.Process.Typed (withLoggedProcess_, createSource, byteStringInput)
43-
import RIO.Process (HasProcessContext (..), ProcessContext, setStdin, closed, getStderr, getStdout, proc, withProcess_, setStdout, setStderr, ProcessConfig, readProcess_, workingDirL, waitExitCode)
43+
import RIO.Process (HasProcessContext (..), ProcessContext, setStdin, closed, getStderr, getStdout, proc, withProcessWait_, setStdout, setStderr, ProcessConfig, readProcess_, workingDirL, waitExitCode)
4444
import Data.Text.Encoding (decodeUtf8With)
4545
import Data.Text.Encoding.Error (lenientDecode)
4646

@@ -79,7 +79,7 @@ sinkProcessStderrStdout name args sinkStderr sinkStdout =
7979
-- See https://github.com/commercialhaskell/stack/pull/4722
8080
$ setStdin (byteStringInput "")
8181
pc0
82-
withProcess_ pc $ \p ->
82+
withProcessWait_ pc $ \p ->
8383
(runConduit (getStderr p .| sinkStderr) `concurrently`
8484
runConduit (getStdout p .| sinkStdout)) <* waitExitCode p
8585

src/Stack/Setup.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ setup7z si = do
15611561
ec <-
15621562
proc cmd args $ \pc ->
15631563
if isExtract
1564-
then withProcess (setStdout createSource pc) $ \p -> do
1564+
then withProcessWait (setStdout createSource pc) $ \p -> do
15651565
total <- runConduit
15661566
$ getStdout p
15671567
.| filterCE (== 10) -- newline characters

0 commit comments

Comments
 (0)