packages feed

amazonka-core 1.0.0 → 1.0.1

raw patch · 2 files changed

+9/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

amazonka-core.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-core-version:               1.0.0+version:               1.0.1 synopsis:              Core data types and functionality for Amazonka libraries. homepage:              https://github.com/brendanhay/amazonka license:               OtherLicense
src/Network/AWS/Error.hs view
@@ -87,8 +87,14 @@      go o = do         c <- (Just <$> o .: "__type") <|> o .:? "code"-        m <- msg c o-        return $! serviceError a s h c m Nothing+        let e = strip <$> c+        m <- msg e o+        return $! serviceError a s h e m Nothing++    strip (ErrorCode x) = ErrorCode $+        case Text.break (== '#') x of+            (ns, e) | Text.null e -> ns+                    | otherwise   -> Text.drop 1 e      msg c o =         if c == Just "RequestEntityTooLarge"