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

Commit

Permalink
Generalize MonadIO instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcapriotti committed Jun 23, 2012
1 parent d44c31c commit ad4a1a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Control/Pipe/Class.hs
Expand Up @@ -106,8 +106,8 @@ instance Monad3 m => Applicative (m a b u) where
pure = return
(<*>) = ap

instance MonadIO m => MonadIO (Pipe m a b u) where
liftIO = execP Unmasked . liftIO
instance (MonadStream m, MonadIO (BaseMonad m)) => MonadIO (m a b u) where
liftIO = liftPipe . execP Unmasked . liftIO

-- PipeD

Expand Down

0 comments on commit ad4a1a4

Please sign in to comment.