| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Mon, 19 Jan 2026 02:31:27 GMT
X-Served-By: cache-dfw-kdfw8210143-DFW, cache-bom-vanm7210028-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768789887.749888,VS0,VE333
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
google-translate: Google Translate API bindings
google-translate: Google Translate API bindings
Downloads
- google-translate-0.5.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.1.1, 0.1.1.2, 0.2, 0.3, 0.4, 0.4.1, 0.5 |
|---|---|
| Dependencies | aeson, base (>=4.7 && <5), bytestring (>=0.10 && <0.11), http-api-data (>=0.2 && <0.4), http-client (>=0.4 && <0.6), servant (>=0.13), servant-client (>=0.13), text (>=1.2 && <1.3), transformers (>=0.4 && <0.6) [details] |
| License | BSD-3-Clause |
| Copyright | David Johnson (c) 2018 |
| Author | David Johnson, Dmitry Dzhus |
| Maintainer | code@dmj.io |
| Uploaded | by DavidJohnson at 2018-05-07T11:42:52Z |
| Revised | Revision 1 made by DavidJohnson at 2024-12-16T22:47:58Z |
| Category | Web |
| Source repo | head: git clone https://github.com/dmjio/google-translate |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 6312 total (33 in the last 30 days) |
| Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2018-05-07 [all 1 reports] |
Readme for google-translate-0.5
[back to package description]google-translate
High-level, up-to-date bindings to the Google Translate API.
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad
import qualified Data.Text.IO as T
import Network.HTTP.Client
import Network.HTTP.Client.TLS
import Web.Google.Translate
main :: IO ()
main = do
Right TranslationResponse { translations = xs } <-
newManager tlsManagerSettings >>= \mgr ->
translate mgr (Key "<API-Key>") (Just srcLang) trgLang (Body "Hello")
forM_ xs $ \Translation { translatedText = TranslatedText txt } ->
T.putStrLn txt
where
srcLang = Source English
trgLang = Target Russian
-- >>> Здравствуйте