Changeset 14113 for src/Pugs/Eval.hs

Show
Ignore:
Timestamp:
10/09/06 17:26:24 (2 years ago)
Author:
audreyt
Message:

r14985@T: audreyt | 2006-10-09 16:45:12 +0800

  • Use MonadError? instead of MonadCont? for error handling. This will help separate out continuations with exceptions.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r14079 r14113  
    187187evalRef ref = do 
    188188    if refType ref == (mkType "Thunk") then forceRef ref else do 
    189     val <- callCC $ \esc -> do 
     189    val <- catchT $ \esc -> do 
    190190        MkEnv{ envContext = cxt, envLValue = lv, envClasses = cls } <- ask 
    191191        let typ = typeOfCxt cxt