version number, encoding

This commit is contained in:
aarne committed 2005-12-22 16:46:38 +00:00
1 parent b4fe6336af
commit 14f70e478d
5 files changed
+22 -6

No files matched your search

+5 -1
View File
@@ -18,4 +18,8 @@ import Control.Exception (Exception)
{-# NOINLINE runInterruptibly #-}
runInterruptibly :: IO a -> IO (Either Exception a)
runInterruptibly = fmap Right
--runInterruptibly = fmap Right
runInterruptibly a =
p `catch` h
where p = a >>= \x -> return $! Right $! x
h e = return $ Left e