on master help sign in
Replace typed-process with process
commite3cbdab32c9ca9793179d2c1572cca9ec4a1dcbc authorHarendra Kumar <harendra@composewell.com> dateSat 22 Jan 2022, 02:42 (5 years ago) parent1ca5137
2 files changed+4−4
benchmark/lib/Streamly/Benchmark/Common/Handle.hs+3−3 benchmark/streamly-benchmarks.cabal+1−1
benchmark/lib/Streamly/Benchmark/Common/Handle.hs+3−3
@@ -39,7 +39,7 @@ import Data.Word (Word8)
3939import System.Directory (getFileSize)
4040import System.Environment (lookupEnv)
4141import System.IO (openFile, IOMode(..), Handle, hClose, stderr, hPutStrLn)
42−import System.Process.Typed (shell, runProcess_)
42+import System.Process (callCommand)
4343
4444import Data.IORef
4545import Prelude hiding (last, length)
@@ -183,8 +183,8 @@ mkHandleBenchEnv = do
183183 ++ "\" && head -c " ++ show size
184184 ++ " </dev/urandom >" ++ infile
185185 ++ ";}"
186− runProcess_ (shell (cmd inFileSmall smallFileSize))
187− runProcess_ (shell (cmd inFileBig bigFileSize))
186+ callCommand (cmd inFileSmall smallFileSize)
187+ callCommand (cmd inFileBig bigFileSize)
188188 return (inFileSmall, inFileBig)
189189
190190 hPutStrLn stderr $ "Using small input file: " ++ small
benchmark/streamly-benchmarks.cabal+1−1
@@ -123,7 +123,7 @@ common bench-depends
123123 , random >= 1.0 && < 2.0
124124 , transformers >= 0.4 && < 0.7
125125 , containers >= 0.5 && < 0.7
126− , typed-process >= 0.2.3 && < 0.3
126+ , process >= 1.4 && < 1.7
127127 , directory >= 1.2.2 && < 1.4
128128 , filepath >= 1.4.1 && < 1.5
129129 , ghc-prim >= 0.4 && < 0.9