@@ -35,8 +35,9 @@ import qualified Control.Exception as E (catch)
35import Control.Exception (SomeException(..))
35import Control.Exception (SomeException(..))
36import Control.Concurrent (forkIO, yield)
36import Control.Concurrent (forkIO, yield)
38+#ifndef mingw32_HOST_OS
38−import System.Posix.Signals
39+import System.Posix.Signals (installHandler, keyboardSignal, Handler(Catch))
39− (Handler(..), keyboardSignal, installHandler)
40+#endif
40import System.Directory (getCurrentDirectory)
41import System.Directory (getCurrentDirectory)
42import Data.Monoid ((<>))
43import Data.Monoid ((<>))
@@ -95,7 +96,11 @@ quitWebView wv = postGUIAsync $ do w <- widgetGetToplevel wv --TODO: Shouldn't t
95 widgetDestroy w
96 widgetDestroy w
97installQuitHandler :: WebView -> IO ()
98installQuitHandler :: WebView -> IO ()
99+#ifdef mingw32_HOST_OS
100+installQuitHandler wv = return () -- TODO: Maybe figure something out here for Windows users.
98installQuitHandler wv = void $ installHandler keyboardSignal (Catch (quitWebView wv)) Nothing
102installQuitHandler wv = void $ installHandler keyboardSignal (Catch (quitWebView wv)) Nothing
100postGUIAsync :: IO () -> IO ()
105postGUIAsync :: IO () -> IO ()
101postGUIAsync action =
106postGUIAsync action =