packages feed

amazonka-core 0.0.6 → 0.0.7

raw patch · 3 files changed

+7/−1 lines, 3 files

Files

amazonka-core.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-core-version:               0.0.6+version:               0.0.7 synopsis:              Core functionality and data types for Amazonka libraries. homepage:              https://github.com/brendanhay/amazonka license:               OtherLicense
src/Network/AWS/Data/Internal/JSON.hs view
@@ -20,6 +20,7 @@     , withObject     , (.:)     , (.:?)+    , (.!=)     -- ** Either String a     , (.:>)     , (.:?>)
src/Network/AWS/Data/Internal/XML.hs view
@@ -27,6 +27,7 @@     , localName     , (.@)     , (.@?)+    , (.!@)      -- * ToXML     , ToXML     (..)@@ -90,6 +91,10 @@         Left _   -> Right Nothing         Right xs -> parseXML xs {-# INLINE (.@?) #-}++(.!@) :: Either String (Maybe a) -> a -> Either String a+f .!@ x = fromMaybe x <$> f+{-# INLINE (.!@) #-}  namespaced :: Text -> Text -> [Node] -> Element namespaced g l = element (Name l (Just g) Nothing)