[project @ 2001-06-29 12:58:20 by rrt]
[ghc-hetmet.git] / ghc / compiler / main / SysTools.lhs
index 6b88692..e2c43ff 100644 (file)
@@ -406,13 +406,12 @@ touch purpose arg =  do p <- readIORef v_Pgm_T
 
 copy :: String -> String -> String -> IO ()
 copy purpose from to =
-    (do
+    do
       h <- openFile to WriteMode
       ls <- readFile from -- inefficient, but it'll do for now.
                              -- ToDo: speed up via slurping.
-      hPutStrLn h ls
-      hClose h) `catchAllIO`
-                (\_ -> throwDyn (PhaseFailed purpose (ExitFailure 1)))
+      hPutStr h ls
+      hClose h
 \end{code}
 
 \begin{code}