]> gitweb.michael.orlitzky.com - list-remote-forwards.git/blobdiff - src/Main.hs
src/OptionalConfiguration.hs: add Semigroup instance.
[list-remote-forwards.git] / src / Main.hs
index 13371a836d9f7c537583842241db904ec39df1c8..088d86d4bde13f7bc1866abaaec79e0e0d9a1ab5 100644 (file)
@@ -1,6 +1,6 @@
 {-# LANGUAGE DoAndIfThenElse #-}
 {-# LANGUAGE NoMonomorphismRestriction #-}
-module Main
+module Main (main)
 where
 
 import Data.Maybe ( fromMaybe )
@@ -74,9 +74,9 @@ main = do
           else connectPostgreSQL (connection_string cfg) >>= report cfg
 
     -- The DB connection is implicitly closed when it gets garbage collected.
-    putStrLn r
+    putStr r
 
   where
     show_sql_error :: SqlError -> IO ()
     show_sql_error se = hPutStrLn stderr $
-      "SQL Error (" ++ (show $ seNativeError se) ++ "): " ++ (seErrorMsg se)
+      "SQL Error (" ++ show (seNativeError se) ++ "): " ++ (seErrorMsg se)