Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
349e0e18
Commit
349e0e18
authored
Aug 01, 2006
by
Simon Marlow
Browse files
savingOldConfig: add Exception.block for extra paranoia
parent
34b0bd51
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/ghc-pkg/Main.hs
View file @
349e0e18
...
...
@@ -577,7 +577,7 @@ writeNewConfig filename packages = do
hPutStrLn
stdout
"done."
savingOldConfig
::
FilePath
->
IO
()
->
IO
()
savingOldConfig
filename
io
=
do
savingOldConfig
filename
io
=
Exception
.
block
$
do
hPutStr
stdout
"Saving old package config file... "
-- mv rather than cp because we've already done an hGetContents
-- on this file so we won't be able to open it for writing
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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