packages feed

minio-hs 1.1.0 → 1.2.0

raw patch · 4 files changed

+10/−1 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Network.Minio: findFirst :: [Provider] -> Provider
+ Network.Minio: type Provider = IO (Maybe Credentials)

Files

CHANGELOG.md view
@@ -1,6 +1,10 @@ Changelog ========== +## Version 1.2.0++* Export Provider and findFirst to look for credentials (#103)+ ## Version 1.1.0  This version brings the following changes:
minio-hs.cabal view
@@ -1,5 +1,5 @@ name:                minio-hs-version:             1.1.0+version:             1.2.0 synopsis:            A Minio Haskell Library for Amazon S3 compatible cloud                      storage. description:         The Minio Haskell client library provides simple APIs to
src/Network/Minio.hs view
@@ -20,9 +20,11 @@   (   -- * Credentials     Credentials (..)+  , Provider   , fromAWSConfigFile   , fromAWSEnv   , fromMinioEnv+  , findFirst    -- * Connecting to object storage   ---------------------------------
src/Network/Minio/Data.hs view
@@ -113,8 +113,11 @@                                , cSecretKey :: Text                                } deriving (Eq, Show) +-- | A Provider is an action that may return Credentials type Provider = IO (Maybe Credentials) +-- | Combines the given list of providers, by calling each one in+-- order until Credentials are found. findFirst :: [Provider] -> Provider findFirst [] = return Nothing findFirst (f:fs) = do c <- f