diff --git a/Shelly.hs b/Shelly.hs
--- a/Shelly.hs
+++ b/Shelly.hs
@@ -82,7 +82,7 @@
 import Data.Typeable
 import Data.IORef
 import Data.Maybe
-import System.IO hiding ( readFile, FilePath )
+import System.IO ( hClose, stderr, stdout, openTempFile )
 import System.Exit
 import System.Environment
 import Control.Applicative
@@ -597,7 +597,7 @@
     toSSH (exe,args) = show_command exe args
 
 
-data Exception e => ReThrownException e = ReThrownException e String deriving (Typeable)
+data ReThrownException e = ReThrownException e String deriving (Typeable)
 instance Exception e => Exception (ReThrownException e)
 instance Exception e => Show (ReThrownException e) where
   show (ReThrownException ex msg) = "\n" ++
diff --git a/Shelly/Base.hs b/Shelly/Base.hs
--- a/Shelly/Base.hs
+++ b/Shelly/Base.hs
@@ -202,7 +202,7 @@
 -- variants do not print a final newline.
 echo, echo_n, echo_err, echo_n_err :: Text -> ShIO ()
 echo       = traceLiftIO TIO.putStrLn
-echo_n     = traceLiftIO $ (>> hFlush System.IO.stdout) . TIO.putStr
+echo_n     = traceLiftIO $ (>> hFlush stdout) . TIO.putStr
 echo_err   = traceLiftIO $ TIO.hPutStrLn stderr
 echo_n_err = traceLiftIO $ (>> hFlush stderr) . TIO.hPutStr stderr
 
diff --git a/shelly.cabal b/shelly.cabal
--- a/shelly.cabal
+++ b/shelly.cabal
@@ -1,6 +1,6 @@
 Name:       shelly
 
-Version:     0.12.0.2
+Version:     0.12.1
 Synopsis:    shell-like (systems) programming in Haskell
 
 Description: Shelly provides convenient systems programming in Haskell,
