packages feed

hailgun 0.4.1.0 → 0.4.1.1

raw patch · 2 files changed

+21/−6 lines, 2 filesdep ~aesondep ~http-clientdep ~http-client-tlsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, http-client, http-client-tls

API changes (from Hackage documentation)

Files

Mail/Hailgun/Communication.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ module Mail.Hailgun.Communication     ( getRequest     , postRequest@@ -27,13 +29,26 @@ getRequest :: (MonadThrow m) => String -> HailgunContext -> [(BC.ByteString, Maybe BC.ByteString)] -> m NC.Request getRequest url context queryParams = do    initRequest <- NC.parseUrl url-   let request = appEndo (applyHailgunAuth context) $ initRequest { NC.method = NM.methodGet, NC.checkStatus = ignoreStatus }+   let request = appEndo (applyHailgunAuth context) $+         initRequest+            { NC.method = NM.methodGet+#if MIN_VERSION_http_client(0,5,0)+#else+            , NC.checkStatus = ignoreStatus+#endif+            }    return $ NC.setQueryString queryParams request  postRequest :: (MonadThrow m, MonadIO m) => String -> HailgunContext -> [Part] -> m NC.Request postRequest url context parts = do    initRequest <- NC.parseUrl url-   let request = initRequest { NC.method = NM.methodPost, NC.checkStatus = ignoreStatus }+   let request = initRequest+         { NC.method = NM.methodPost+#if MIN_VERSION_http_client(0,5,0)+#else+         , NC.checkStatus = ignoreStatus+#endif+         }    requestWithBody <- formDataBody parts request    --requestWithBody <- encodeFormData formParams request    return $ appEndo (applyHailgunAuth context) requestWithBody
hailgun.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.4.1.0+version:             0.4.1.1  -- A short (one-line) description of the package. synopsis:            Mailgun REST api interface for Haskell.@@ -71,11 +71,11 @@     build-depends:         base               >= 4.6 && < 5                         , bytestring         >= 0.10.4 && <= 0.11-                        , aeson              >= 0.8 && < 0.12+                        , aeson              >= 0.8 && < 1.1                         , text               == 1.2.*                         , transformers       >= 0.3 && < 0.6-                        , http-client        == 0.4.*-                        , http-client-tls    == 0.2.*+                        , http-client        >= 0.4 && < 0.6+                        , http-client-tls    >= 0.2 && < 0.4                         , email-validate     >= 2.0 && <2.3                         , http-types         >= 0.8 && < 0.10                         , exceptions         == 0.8.*