diff --git a/hsimport.cabal b/hsimport.cabal
--- a/hsimport.cabal
+++ b/hsimport.cabal
@@ -1,5 +1,5 @@
 Name:          hsimport
-Version:       0.2.6
+Version:       0.2.6.1
 License:       BSD3
 License-file:  LICENSE
 Author:        Daniel Trstenjak
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -2,6 +2,7 @@
 module Main where
 
 import System.Exit (exitFailure, exitSuccess)
+import System.IO (hPutStrLn, stderr)
 import HsImport
 
 main :: IO ()
@@ -9,5 +10,5 @@
    args      <- hsImportArgs
    maybeSpec <- hsImportSpec args
    case maybeSpec of
-        Left  error -> putStrLn ("hsimport: " ++ error) >> exitFailure
-        Right spec  -> hsImport spec                    >> exitSuccess
+        Left  error -> hPutStrLn stderr ("hsimport: " ++ error) >> exitFailure
+        Right spec  -> hsImport spec                            >> exitSuccess
