packages feed

typed-process 0.1.0.0 → 0.1.0.1

raw patch · 4 files changed

+14/−4 lines, 4 filesdep ~async

Dependency ranges changed: async

Files

ChangeLog.md view
@@ -1,3 +1,8 @@+## 0.1.0.1++* Fix bug in `waitForProcess` that caused exit code to be lost+* Minor doc improvements+ ## 0.1.0.0  * Initial commit
README.md view
@@ -2,6 +2,9 @@  [![Build Status](https://travis-ci.org/fpco/typed-process.svg?branch=master)](https://travis-ci.org/fpco/typed-process) [![Build status](https://ci.appveyor.com/api/projects/status/bhh7aekbgeqp7g5j/branch/master?svg=true)](https://ci.appveyor.com/project/snoyberg/typed-process/branch/master) +API level documentation (Haddocks) may be [found on+Stackage](https://www.stackage.org/package/typed-process).+ This library provides the ability to launch and interact with external processes. It wraps around the [process library](https://haskell-lang.org/library/process), and
src/System/Process/Typed.hs view
@@ -84,7 +84,7 @@  import qualified Data.ByteString as S import Data.ByteString.Lazy.Internal (defaultChunkSize)-import Control.Exception (throwIO)+import Control.Exception (assert, evaluate, throwIO) import Control.Monad (void) import Control.Monad.IO.Class import qualified System.Process as P@@ -620,7 +620,9 @@                 -- then call waitForProcess ourselves                 Left _ -> do                     P.terminateProcess pHandle-                    void $ P.waitForProcess pHandle+                    ec <- P.waitForProcess pHandle+                    success <- atomically $ tryPutTMVar pExitCode ec+                    evaluate $ assert success ()      return Process {..}   where
typed-process.cabal view
@@ -1,8 +1,8 @@ name:                typed-process-version:             0.1.0.0+version:             0.1.0.1 synopsis:            Run external processes, with strong typing of streams description:         Please see README.md-homepage:            https://github.com/fpco/typed-process#readme+homepage:            https://haskell-lang.org/library/typed-process license:             MIT license-file:        LICENSE author:              Michael Snoyman