summaryrefslogtreecommitdiff
path: root/src/GF/System/NoSignal.hs
diff options
context:
space:
mode:
authorbringert <unknown>2005-11-11 10:12:49 +0000
committerbringert <unknown>2005-11-11 10:12:49 +0000
commitac4ce06a21ddb9034855b3839176c83f0b9783f0 (patch)
tree906d2cea7f9a9e4e9a1203822d87ef6c0eac7517 /src/GF/System/NoSignal.hs
parent136728e336d66349723f882fcd87a2eb8d42903c (diff)
Allow disabling signal support in configure.
Diffstat (limited to 'src/GF/System/NoSignal.hs')
-rw-r--r--src/GF/System/NoSignal.hs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/GF/System/NoSignal.hs b/src/GF/System/NoSignal.hs
new file mode 100644
index 000000000..3c2fc6e29
--- /dev/null
+++ b/src/GF/System/NoSignal.hs
@@ -0,0 +1,21 @@
+----------------------------------------------------------------------
+-- |
+-- Module : GF.System.NoSignal
+-- Maintainer : Bjorn Bringert
+-- Stability : (stability)
+-- Portability : (portability)
+--
+-- > CVS $Date: 2005/11/11 11:12:50 $
+-- > CVS $Author: bringert $
+-- > CVS $Revision: 1.1 $
+--
+-- Dummy implementation of signal handling.
+-----------------------------------------------------------------------------
+
+module GF.System.NoSignal where
+
+import Control.Exception (Exception)
+
+{-# NOINLINE runInterruptibly #-}
+runInterruptibly :: IO a -> IO (Either Exception a)
+runInterruptibly = fmap Right