Changeset 22989 for src/Pugs/AST

Show
Ignore:
Timestamp:
11/12/08 10:00:43 (8 weeks ago)
Author:
audreyt
Message:

* GHC 6.10 support, part 2 of 3: Adjust for extensible exceptions.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/AST/Eval.hs

    r15616 r22989  
    44import Pugs.Internals 
    55import Pugs.Cont hiding (resetT) 
    6 import Control.Exception (try, Exception) 
     6import System.IO.Error (try, IOError) 
    77 
    88import Pugs.AST.SIO 
     
    165165supress the exception and return an associated value instead. 
    166166-} 
    167 guardIOexcept :: MonadIO m => [((Exception -> Bool), a)] -> IO a -> m a 
     167guardIOexcept :: MonadIO m => [((IOError -> Bool), a)] -> IO a -> m a 
    168168guardIOexcept safetyNet x = do 
    169169    rv <- io $ try x