[project @ 2001-04-07 22:30:01 by qrczak]
authorqrczak <unknown>
Sat, 7 Apr 2001 22:30:01 +0000 (22:30 +0000)
committerqrczak <unknown>
Sat, 7 Apr 2001 22:30:01 +0000 (22:30 +0000)
Append final newline to package.conf.

ghc/utils/ghc-pkg/Main.hs

index 139ce87..310d810 100644 (file)
@@ -1,5 +1,5 @@
 -----------------------------------------------------------------------------
--- $Id: Main.hs,v 1.8 2001/03/27 14:10:34 simonmar Exp $
+-- $Id: Main.hs,v 1.9 2001/04/07 22:30:01 qrczak Exp $
 --
 -- Package management tool
 -----------------------------------------------------------------------------
@@ -146,7 +146,7 @@ writeNewConfig :: String -> [PackageConfig] -> IO ()
 writeNewConfig conf_file details = do
   hPutStr stdout "Writing new package config file... "
   h <- openFile conf_file WriteMode
-  hPutStr h (dumpPackages details )
+  hPutStrLn h (dumpPackages details)
   hClose h
   hPutStrLn stdout "done."