Changeset 22989 for src/Pugs/AST
- Timestamp:
- 11/12/08 10:00:43 (8 weeks ago)
- Files:
-
- 1 modified
-
src/Pugs/AST/Eval.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/AST/Eval.hs
r15616 r22989 4 4 import Pugs.Internals 5 5 import Pugs.Cont hiding (resetT) 6 import Control.Exception (try, Exception)6 import System.IO.Error (try, IOError) 7 7 8 8 import Pugs.AST.SIO … … 165 165 supress the exception and return an associated value instead. 166 166 -} 167 guardIOexcept :: MonadIO m => [(( Exception-> Bool), a)] -> IO a -> m a167 guardIOexcept :: MonadIO m => [((IOError -> Bool), a)] -> IO a -> m a 168 168 guardIOexcept safetyNet x = do 169 169 rv <- io $ try x
