Skip to content

Commit c95296b

Browse files
committed
Review feedbacks
1 parent f2d4d0f commit c95296b

File tree

1 file changed

+3
-3
lines changed
  • shake-bench/src/Development/Benchmark

1 file changed

+3
-3
lines changed

Diff for: shake-bench/src/Development/Benchmark/Rules.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import GHC.Stack (HasCallStack)
8484
import qualified Graphics.Rendering.Chart.Backend.Diagrams as E
8585
import Graphics.Rendering.Chart.Easy ((.=))
8686
import qualified Graphics.Rendering.Chart.Easy as E
87-
import System.Directory (findExecutable, createDirectoryIfMissing)
87+
import System.Directory (createDirectoryIfMissing, findExecutable, renameFile)
8888
import System.FilePath
8989
import qualified Text.ParserCombinators.ReadP as P
9090
import Text.Read (Read (..), get,
@@ -251,7 +251,7 @@ benchRules build benchResource MkBenchRules{..} = do
251251
AddPath [takeDirectory ghcPath, "."] []
252252
]
253253
BenchProject {..}
254-
cmd_ Shell $ "mv ghcide.hp " <> dropFileName outcsv </> dropExtension exp <.> "hp"
254+
liftIO $ renameFile "ghcide.hp " $ dropFileName outcsv </> dropExtension exp <.> "hp"
255255

256256
-- extend csv output with allocation data
257257
csvContents <- liftIO $ lines <$> readFile outcsv
@@ -385,7 +385,7 @@ eventlogRules :: FilePattern -> Rules ()
385385
eventlogRules build = do
386386
build -/- "*/*/*.eventlog.html" %> \out -> do
387387
need [dropExtension out]
388-
cmd_ $ "eventlog2html " <> dropExtension out
388+
cmd_ ("eventlog2html" :: String) [dropExtension out]
389389

390390
--------------------------------------------------------------------------------
391391
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)