Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit d95d83a

Browse files
committed
* mtl2 compat.
1 parent 82ede96 commit d95d83a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Pugs/src/Pugs/Cont.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-}
1111

1212
module Pugs.Cont (
13-
callCCT, shift, reset, shiftT, resetT,
13+
callCCT, shiftT, resetT,
1414
module Control.Monad.Cont,
1515
) where
1616

@@ -31,13 +31,6 @@ callCCT f = callCC f' where
3131
-- ghc doesn't allow something like m (forall c. m c)
3232
newtype EmptyMonad m = EmptyMonad { runEmptyMonad :: forall c. m c }
3333

34-
-- shift/reset for the Cont monad
35-
shift :: ((a -> Cont s r) -> Cont r r) -> Cont r a
36-
shift e = Cont $ \k -> e (return . k) `runCont` id
37-
38-
reset :: Cont a a -> Cont r a
39-
reset e = return $ e `runCont` id
40-
4134
-- shiftT/resetT for the ContT monad transformer
4235
shiftT :: Monad m => ((a -> ContT r m s) -> ContT s m s) -> ContT s m a
4336
shiftT e = ContT $ \k -> e (C.lift . k) `runContT` return

0 commit comments

Comments
 (0)