X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FSysTools.lhs;h=c479a66ab5af8b3910c66d0eafc043bf228d26b3;hb=d529d596a1256bb48bda45ec343631c879c8d56d;hp=5a0c45bc58a4ec27c7a08bf7844ba726e2371c5c;hpb=4bd031279103a2772ac1673e1dcf3c9d67655242;p=ghc-hetmet.git diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs index 5a0c45b..c479a66 100644 --- a/compiler/main/SysTools.lhs +++ b/compiler/main/SysTools.lhs @@ -480,7 +480,7 @@ newTempName :: DynFlags -> Suffix -> IO FilePath newTempName dflags extn = do d <- getTempDir dflags x <- getProcessID - findTempName (d ++ "/ghc" ++ show x ++ "_") 0 + findTempName (d "ghc" ++ show x ++ "_") 0 where findTempName :: FilePath -> Integer -> IO FilePath findTempName prefix x @@ -500,7 +500,7 @@ getTempDir dflags@(DynFlags{tmpDir=tmp_dir}) case lookupFM mapping tmp_dir of Nothing -> do x <- getProcessID - let prefix = tmp_dir ++ "/ghc" ++ show x ++ "_" + let prefix = tmp_dir "ghc" ++ show x ++ "_" let mkTempDir :: Integer -> IO FilePath mkTempDir x