version number, encoding
This commit is contained in:
1 parent
b4fe6336af
commit
14f70e478d
5 files changed
+22
-6
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user