Generalized Pipes.Prelude utilities to use `MonadIO`