module Simulation.Aivika.IO.Exception () where
import Control.Exception
import Simulation.Aivika.Trans.Exception
instance MonadException IO where
{-# INLINE catchComp #-}
catchComp :: IO a -> (e -> IO a) -> IO a
catchComp = IO a -> (e -> IO a) -> IO a
forall e a. Exception e => IO a -> (e -> IO a) -> IO a
catch
{-# INLINE finallyComp #-}
finallyComp :: IO a -> IO b -> IO a
finallyComp = IO a -> IO b -> IO a
forall a b. IO a -> IO b -> IO a
finally
{-# INLINE throwComp #-}
throwComp :: e -> IO a
throwComp = e -> IO a
forall a e. Exception e => e -> a
throw