packages feed

microsoft-translator 0.1.1 → 0.1.2

raw patch · 4 files changed

+20/−18 lines, 4 filesdep ~basedep ~http-api-datadep ~servantPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, http-api-data, servant, servant-client

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,9 +1,13 @@ # Revision history for microsoft-translator -## 0.1.0.0  -- 2017-12-03+## 0.1.2 -* First version. Released on an unsuspecting world.+* Update package bounds for GHC-8.6.3, Stackage LTS-13.0 -## 0.1.1  -- 2017-12-19+## 0.1.1  * Relax package bounds to accommodate GHC 8.0++## 0.1.0.0++* First version. Released on an unsuspecting world.
microsoft-translator.cabal view
@@ -1,5 +1,5 @@ name:                microsoft-translator-version:             0.1.1+version:             0.1.2 synopsis:            Bindings to the Microsoft Translator API description:     Bindings to the text portion of the <https://www.microsoft.com/en-us/translator/products.aspx Microsoft Translator API>.@@ -12,26 +12,26 @@ license:             MIT license-file:        LICENSE author:              Cliff Harvey-maintainer:          cs.hbar@gmail.com-copyright:           Cliff Harvey 2017-homepage:            https://github.com/BlackBrane/microsoft-translator+maintainer:          cs.hbar+hs@gmail.com+copyright:           Cliff Harvey 2017-2018+homepage:            https://github.com/fieldstrength/microsoft-translator category:            Natural Language build-type:          Simple extra-source-files:  ChangeLog.md cabal-version:       >=1.10-tested-with:         GHC == 8.0.2, GHC == 8.2.2+tested-with:         GHC == 8.4.4  library -  build-depends:         base            >= 4.9  && < 4.11-                       , servant         >= 0.9  && < 0.13-                       , servant-client  >= 0.9  && < 0.13+  build-depends:         base            >= 4.9  && < 5+                       , servant         >= 0.13 && < 0.16+                       , servant-client  >= 0.13 && < 0.16                        , text            >= 1.2  && < 1.3                        , http-client     >= 0.5  && < 0.6                        , http-client-tls >= 0.3  && < 0.4                        , http-media      >= 0.6  && < 0.8                        , bytestring      >= 0.10 && < 0.11-                       , http-api-data   >= 0.3  && < 0.4+                       , http-api-data   >= 0.3  && < 0.5                        , mtl             >= 2.2  && < 2.3                        , time            >= 1.6  && < 1.9                        , xml             >= 1.3  && < 1.4@@ -52,4 +52,4 @@  source-repository head     type: git-    location: https://github.com/BlackBrane/microsoft-translator+    location: https://github.com/fieldstrength/microsoft-translator
src/Microsoft/Translator/API.hs view
@@ -25,7 +25,6 @@  import           Data.Bifunctor import           Data.ByteString.Lazy (fromStrict, toStrict)-import           Data.Monoid import           Data.Proxy import           Data.Text            as T (Text, pack, unlines) import           Data.Text.Encoding   (decodeUtf8', encodeUtf8)@@ -166,7 +165,7 @@     bimap APIException getTransText <$>         runClientM             (transClient (Just tok) (Just txt) from (Just to))-            (ClientEnv man apiBaseUrl)+            (ClientEnv man apiBaseUrl Nothing)  -- | Most basic possible text list translation function. For typical use-cases it will --   be much more convenient to use functions from the "Microsoft.Translator" module, namely@@ -177,4 +176,4 @@     bimap APIException id <$>         runClientM             (arrayClient (Just tok) (ArrayRequest from to txts))-            (ClientEnv man apiBaseUrl)+            (ClientEnv man apiBaseUrl Nothing)
src/Microsoft/Translator/API/Auth.hs view
@@ -22,7 +22,6 @@ import           Control.Arrow        (left) import           Data.Bifunctor import           Data.ByteString.Lazy (toStrict)-import           Data.Monoid import           Data.String import           Data.Text            (Text) import           Data.Text.Encoding   (decodeUtf8')@@ -75,4 +74,4 @@ -- | Retrieve a token from the API. It will be valid for 10 minutes. issueToken :: Manager -> SubscriptionKey -> IO (Either TranslatorException AuthToken) issueToken man key = first APIException <$>-    runClientM (authClient $ Just key) (ClientEnv man authUrl)+    runClientM (authClient $ Just key) (ClientEnv man authUrl Nothing)