on master help sign in
Replace typed-process with process
e3cbdabHarendra Kumar
benchmark/lib/Streamly/Benchmark/Common/Handle.hs+3−3
@@ -39,7 +39,7 @@ import Data.Word (Word8)
39import System.Directory (getFileSize)
39import System.Directory (getFileSize)
40import System.Environment (lookupEnv)
40import System.Environment (lookupEnv)
41import System.IO (openFile, IOMode(..), Handle, hClose, stderr, hPutStrLn)
41import System.IO (openFile, IOMode(..), Handle, hClose, stderr, hPutStrLn)
42−import System.Process.Typed (shell, runProcess_)
42+import System.Process (callCommand)
43
43
44import Data.IORef
44import Data.IORef
45import Prelude hiding (last, length)
45import Prelude hiding (last, length)
@@ -183,8 +183,8 @@ mkHandleBenchEnv = do
183 ++ "\" && head -c " ++ show size
183 ++ "\" && head -c " ++ show size
184 ++ " </dev/urandom >" ++ infile
184 ++ " </dev/urandom >" ++ infile
185 ++ ";}"
185 ++ ";}"
186− runProcess_ (shell (cmd inFileSmall smallFileSize))
186+ callCommand (cmd inFileSmall smallFileSize)
187− runProcess_ (shell (cmd inFileBig bigFileSize))
187+ callCommand (cmd inFileBig bigFileSize)
188 return (inFileSmall, inFileBig)
188 return (inFileSmall, inFileBig)
189
189
190 hPutStrLn stderr $ "Using small input file: " ++ small
190 hPutStrLn stderr $ "Using small input file: " ++ small
benchmark/streamly-benchmarks.cabal+1−1
@@ -123,7 +123,7 @@ common bench-depends
123 , random >= 1.0 && < 2.0
123 , random >= 1.0 && < 2.0
124 , transformers >= 0.4 && < 0.7
124 , transformers >= 0.4 && < 0.7
125 , containers >= 0.5 && < 0.7
125 , containers >= 0.5 && < 0.7
126− , typed-process >= 0.2.3 && < 0.3
126+ , process >= 1.4 && < 1.7
127 , directory >= 1.2.2 && < 1.4
127 , directory >= 1.2.2 && < 1.4
128 , filepath >= 1.4.1 && < 1.5
128 , filepath >= 1.4.1 && < 1.5
129 , ghc-prim >= 0.4 && < 0.9
129 , ghc-prim >= 0.4 && < 0.9