Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
Adapt to addition of Flush.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcapriotti committed Jun 9, 2012
1 parent 4338192 commit 681aef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Control/Pipe/Coroutine.hs
Expand Up @@ -28,6 +28,7 @@ suspend (Yield x p w) = return (Right (x, Coroutine p w))
suspend (M s m h) = M s (liftM suspend m) (suspend . h) suspend (M s m h) = M s (liftM suspend m) (suspend . h)
suspend (Await k h) = Await (suspend . k) (suspend . h) suspend (Await k h) = Await (suspend . k) (suspend . h)
suspend (Unawait x _) = absurd x suspend (Unawait x _) = absurd x
suspend (Flush p) = Flush (suspend p)


coroutine :: Monad m coroutine :: Monad m
=> Pipe Void a b m r => Pipe Void a b m r
Expand Down

0 comments on commit 681aef7

Please sign in to comment.