packages feed

machines-amazonka 0.5.0 → 0.6.0

raw patch · 2 files changed

+11/−7 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Network.AWS.Machines.AWS: withAWSEnv :: (MonadCatch m, MonadIO m, M m) => Env -> AWSProcessT m a b -> m [b]

Files

Source/Library/Network/AWS/Machines/AWS.hs view
@@ -16,6 +16,7 @@     RequestMod,     M,     withAWS,+    withAWSEnv,     awsSource,     pagedSource,     liftAWS,@@ -80,10 +81,14 @@ withAWS ∷ (MonadCatch m, MonadIO m, M m) ⇒     Credentials → Logger → Region → AWSProcessT m a b → m [b] withAWS creds lgr reg f = do-    env <- set envLogger lgr <$> newEnv creds-    runResourceT $ runAWST env-        $ within reg-        $ runT f+    env <- set envRegion reg ∘ set envLogger lgr <$> newEnv creds+    withAWSEnv env f++-- | Run an AWSProcessT with an 'Env' that's already set up.+withAWSEnv ∷ (MonadCatch m, MonadIO m, M m) ⇒+    Env → AWSProcessT m a b → m [b]+withAWSEnv env f =+    runResourceT $ runAWST env $ runT f  awsSource ∷     (AWSRequest a, Foldable f) ⇒
machines-amazonka.cabal view
@@ -1,5 +1,5 @@ name:                machines-amazonka-version:             0.5.0+version:             0.6.0 synopsis:            Machine transducers for Amazonka calls. description:         This provides several modules for managing AWS                      resources using the Machines library. It supports@@ -25,12 +25,11 @@ source-repository this                   type: git                   location: git@gitlab.com:theunixman/machines-amazonka.git-                  tag: v0.5.0+                  tag: v0.6.0  library   ghc-options:               -Wall-              -package "liblawless (Lawless as Prelude)"               -O2   exposed-modules:                   Network.AWS.Machines