@@ -84,7 +84,7 @@ import GHC.Stack (HasCallStack)
8484import qualified Graphics.Rendering.Chart.Backend.Diagrams as E
8585import Graphics.Rendering.Chart.Easy ((.=) )
8686import qualified Graphics.Rendering.Chart.Easy as E
87- import System.Directory ( findExecutable , createDirectoryIfMissing )
87+ import System.Directory ( createDirectoryIfMissing , findExecutable , renameFile )
8888import System.FilePath
8989import qualified Text.ParserCombinators.ReadP as P
9090import 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 ()
385385eventlogRules 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