From ac4ce06a21ddb9034855b3839176c83f0b9783f0 Mon Sep 17 00:00:00 2001 From: bringert Date: Fri, 11 Nov 2005 10:12:49 +0000 Subject: Allow disabling signal support in configure. --- src/GF/System/NoSignal.hs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/GF/System/NoSignal.hs (limited to 'src/GF/System/NoSignal.hs') 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 -- cgit v1.2.3