Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MinioT monad transformer #143

Open
boris-stepanov opened this issue Mar 2, 2020 · 1 comment
Open

Make MinioT monad transformer #143

boris-stepanov opened this issue Mar 2, 2020 · 1 comment

Comments

@boris-stepanov
Copy link

boris-stepanov commented Mar 2, 2020

Hello!

It would be great, if Minio monad was implemented as a monad transformer, probably, like so:

newtype MinioT m a = Minio { unMinio :: ReaderT MinioConn (ResourceT m) a }

runMinioWith :: (MonadIO m) => MinioConn -> Minio m a -> m (Either MinioErr a)
... and so on

I already forked this library, and I will let you know if I get anything working.

@donatello
Copy link
Member

Thank you, we will definitely consider it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants