@@ -84,7 +84,7 @@ import GHC.Stack (HasCallStack)
84
84
import qualified Graphics.Rendering.Chart.Backend.Diagrams as E
85
85
import Graphics.Rendering.Chart.Easy ((.=) )
86
86
import qualified Graphics.Rendering.Chart.Easy as E
87
- import System.Directory ( findExecutable , createDirectoryIfMissing )
87
+ import System.Directory ( createDirectoryIfMissing , findExecutable , renameFile )
88
88
import System.FilePath
89
89
import qualified Text.ParserCombinators.ReadP as P
90
90
import Text.Read (Read (.. ), get ,
@@ -251,7 +251,7 @@ benchRules build benchResource MkBenchRules{..} = do
251
251
AddPath [takeDirectory ghcPath, " ." ] []
252
252
]
253
253
BenchProject {.. }
254
- cmd_ Shell $ " mv ghcide.hp " <> dropFileName outcsv </> dropExtension exp <.> " hp"
254
+ liftIO $ renameFile " ghcide.hp " $ dropFileName outcsv </> dropExtension exp <.> " hp"
255
255
256
256
-- extend csv output with allocation data
257
257
csvContents <- liftIO $ lines <$> readFile outcsv
@@ -385,7 +385,7 @@ eventlogRules :: FilePattern -> Rules ()
385
385
eventlogRules build = do
386
386
build -/- " */*/*.eventlog.html" %> \ out -> do
387
387
need [dropExtension out]
388
- cmd_ $ " eventlog2html " <> dropExtension out
388
+ cmd_ ( " eventlog2html" :: String ) [ dropExtension out]
389
389
390
390
--------------------------------------------------------------------------------
391
391
--------------------------------------------------------------------------------
0 commit comments