executor 0.0.2 → 0.0.3
raw patch · 3 files changed
+5/−6 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Executor.hs +3/−5
- executor.cabal +1/−1
- test.hs +1/−0
Executor.hs view
@@ -1,4 +1,4 @@-module Executor where+module Executor (execSync, execListSync) where import System.Process (callCommand) import Control.Concurrent.Async (async, wait)@@ -13,8 +13,7 @@ execSync c = do task <- async (callCommand c)- res <- wait task- return res+ wait task -- | Execute a list of shell commands in sequence synchronously -- for example:@@ -23,5 +22,4 @@ execListSync :: [String] -> IO() -execListSync commands = do- mapM_ execSync commands+execListSync commands = do mapM_ execSync commands
executor.cabal view
@@ -1,5 +1,5 @@ name: executor-version:0.0.2+version:0.0.3 description: Haskell module to execute single or multiple shell commands synopsis: Shell helpers homepage: https://github.com/GianlucaGuarini/executor
test.hs view
@@ -6,6 +6,7 @@ execSync "ls" execListSync [ "echo hello",+ "sleep 1", "echo world" ] exitSuccess