google-translate-0.1.0.0: Google Translate API bindings

Copyright(c) David Johnson 2015
Maintainerdjohnson.m@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Web.Google.Translate

Contents

Description

 

Synopsis

Functions

detect :: Key -> Body -> IO (Either ServantError DetectionResponse) Source

Detect target language

getLanguages :: Key -> Maybe Target -> IO (Either ServantError LanguageResponse) Source

Retrieve all languages If Target specified, return langauge name in Target langauge.

translate :: Key -> Maybe Source -> Target -> Body -> IO (Either ServantError TranslationResponse) Source

Perform translation from Source language to Target langauge. If Source not specified, attempt detection of Lang

Types

newtype Key Source

API Key

Constructors

Key Text 

newtype Body Source

Text for translation

Constructors

Body Text