minio / minio-hs

MinIO Client SDK for Haskell
Apache License 2.0
48 stars 32 forks source link

Make MinioT monad transformer #143

Open boris-stepanov opened 4 years ago

boris-stepanov commented 4 years ago

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 commented 4 years ago

Thank you, we will definitely consider it!