Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
bea4a5a3
Commit
bea4a5a3
authored
Jun 15, 2001
by
sof
Browse files
[project @ 2001-06-15 22:00:11 by sof]
Make it compile
parent
c5b931c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/SysTools.lhs
View file @
bea4a5a3
...
...
@@ -49,7 +49,7 @@ import Panic ( progName, GhcException(..) )
import Util ( global )
import CmdLineOpts ( dynFlag, verbosity )
import List (
intersperse,
isPrefixOf )
import List ( isPrefixOf )
import Exception ( throw, throwDyn, catchAllIO )
import IO ( hPutStr, hPutChar, hPutStrLn, hFlush, stderr )
import IO ( openFile, IOMode(..), hClose ) -- For temp "system"
...
...
@@ -479,7 +479,7 @@ addFilesToClean files = mapM_ (add v_FilesToClean) files
removeTmpFiles :: Int -> [FilePath] -> IO ()
removeTmpFiles verb fs
= traceCmd "Deleting temp files"
("Deleting: " ++
concat (intersperse " "
fs)
)
("Deleting: " ++
unwords
fs)
(mapM_ rm fs)
where
rm f = removeFile f `catchAllIO`
...
...
@@ -599,8 +599,8 @@ dosifyPath stuff
#else
--------------------- Unix version ---------------------
dosifyPath
s
xs
=
xs
dosifyPaths
x
s =
x
s
dosifyPath
p
=
p
dosifyPaths
p
s =
p
s
unDosifyPath xs = subst '\\' '/' xs
--------------------------------------------------------
#endif
...
...
@@ -699,4 +699,4 @@ system cmd
removeFile tmp
return exit_code
#endif
\end{code}
\ No newline at end of file
\end{code}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment