@@ -35,8 +35,9 @@ import qualified Control.Exception as E (catch)
3535import Control.Exception (SomeException(..))
3636import Control.Concurrent (forkIO, yield)
3737
38−import System.Posix.Signals
39− (Handler(..), keyboardSignal, installHandler)
38+#ifndef mingw32_HOST_OS
39+import System.Posix.Signals (installHandler, keyboardSignal, Handler(Catch))
40+#endif
4041import System.Directory (getCurrentDirectory)
4142
4243import Data.Monoid ((<>))
@@ -95,7 +96,11 @@ quitWebView wv = postGUIAsync $ do w <- widgetGetToplevel wv --TODO: Shouldn't t
9596 widgetDestroy w
9697
9798installQuitHandler :: WebView -> IO ()
99+#ifdef mingw32_HOST_OS
100+installQuitHandler wv = return () -- TODO: Maybe figure something out here for Windows users.
101+#else
98102installQuitHandler wv = void $ installHandler keyboardSignal (Catch (quitWebView wv)) Nothing
103+#endif
99104
100105postGUIAsync :: IO () -> IO ()
101106postGUIAsync action =