Changeset 2449 for src/Pugs/Cont.hs

Show
Ignore:
Timestamp:
04/28/05 23:45:52 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
3914
Message:

* Eval monad is now a EvalT transformer by itself.
* Much better error reporting on fail "".
* retError now accepts any Show type as the second arg.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Cont.hs

    r2009 r2449  
    1111 
    1212module Pugs.Cont ( 
    13     callCC, shift, reset, shiftT, resetT, 
     13    callCCT, shift, reset, shiftT, resetT, 
    1414    module Control.Monad.Cont, 
    1515) where 
     
    2222type Cont' m a = forall r. a -> m r 
    2323 
    24 callCC :: forall a m. MonadCont m => (Cont' m a -> m a) -> m a 
    25 callCC f = C.callCC f' where 
     24callCCT :: forall a m. MonadCont m => (Cont' m a -> m a) -> m a 
     25callCCT f = C.callCC f' where 
    2626  f' :: (a -> m (EmptyMonad m)) -> m a 
    2727  f' g = f g' where