Changeset 2488 for src/Pugs/Cont.hs

Show
Ignore:
Timestamp:
04/29/05 19:45:40 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
3914
Message:

* move callCC back into MonadCont?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Cont.hs

    r2449 r2488  
    1515) where 
    1616 
    17 import qualified Control.Monad.Cont as C (callCC, lift) 
    18 import Control.Monad.Cont (mapContT, withContT, mapCont, withCont, Cont(..), ContT(..), MonadCont) 
     17import qualified Control.Monad.Cont as C (lift) 
     18import Control.Monad.Cont (mapContT, withContT, mapCont, withCont, Cont(..), ContT(..), MonadCont(..)) 
    1919 
    2020-- Cont' m a is the type of a continuation expecting an a within the  
     
    2323 
    2424callCCT :: forall a m. MonadCont m => (Cont' m a -> m a) -> m a 
    25 callCCT f = C.callCC f' where 
     25callCCT f = callCC f' where 
    2626  f' :: (a -> m (EmptyMonad m)) -> m a 
    2727  f' g = f g' where