packages feed

google-translate 0.1.1.1 → 0.1.1.2

raw patch · 2 files changed

+32/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

+ README.md view
@@ -0,0 +1,27 @@+google-translate+====================+![Hackage](https://img.shields.io/hackage/v/google-translate.svg)+![Hackage Dependencies](https://img.shields.io/hackage-deps/v/google-translate.svg)+![Haskell Programming Language](https://img.shields.io/badge/language-Haskell-blue.svg)+![BSD3 License](http://img.shields.io/badge/license-BSD3-brightgreen.svg)+![Build Status](https://img.shields.io/circleci/project/dmjio/google-translate.svg)++High-level, up-to-date bindings to the Google Translate API.+```haskell+import Control.Monad+import qualified Data.Text.IO as T+import Data.Maybe+import Web.Google.Translate                                                                                             +                                                                                                                                                                                  +main :: IO ()+main = do+  Right TranslationResponse { translations = xs } <-+    translate (Key "<API-Key>") (Just srcLang) trgLang (Body "Hello")+  forM_ xs $ \Translation { translatedText = TranslatedText txt } ->+    T.putStrLn txt+  where+    srcLang = Source English+    trgLang = Target Russian+    +-- >>> Здравствуйте    +```    
google-translate.cabal view
@@ -1,5 +1,5 @@ name:                google-translate-version:             0.1.1.1+version:             0.1.1.2 synopsis:            Google Translate API bindings license:             BSD3 license-file:        LICENSE@@ -10,6 +10,10 @@ build-type:          Simple cabal-version:       >=1.10 description:         Google Translate Library++extra-source-files:+    README.md+ library   exposed-modules:     Web.Google.Translate   hs-source-dirs:      src