diff --git a/CHANGES.txt b/CHANGES.txt
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
 Changelog for HLint
 
+1.9.25
+    #192, fix stdin output and --refactor on Windows
 1.9.24
     #188, improve spotting redundant brackets around patterns
     #138, reenable redundant where hint
diff --git a/hlint.cabal b/hlint.cabal
--- a/hlint.cabal
+++ b/hlint.cabal
@@ -1,7 +1,7 @@
 cabal-version:      >= 1.6
 build-type:         Simple
 name:               hlint
-version:            1.9.24
+version:            1.9.25
 license:            BSD3
 license-file:       LICENSE
 category:           Development
diff --git a/src/HLint.hs b/src/HLint.hs
--- a/src/HLint.hs
+++ b/src/HLint.hs
@@ -5,6 +5,7 @@
 
 import Control.Applicative
 import Control.Monad.Extra
+import Control.Exception
 import System.Console.CmdArgs.Verbosity
 import Data.List
 import System.Exit
@@ -180,7 +181,7 @@
 runRefactoring rpath fin hints opts =  do
   let args = [fin, "-v0"] ++ words opts ++ ["--refact-file", hints]
   (_, _, _, phand) <- createProcess $ proc rpath args
-  hSetBuffering stdin LineBuffering
+  try $ hSetBuffering stdin LineBuffering :: IO (Either IOException ())
   hSetBuffering stdout LineBuffering
   -- Propagate the exit code from the spawn process
   waitForProcess phand
