translate-2010.1.24: Haskell binding to Google's AJAX Language API for Translation and Detection

Text.Language.Internals

Synopsis

Documentation

data RBad Source

Constructors

RBad 

curl :: String -> IO (Maybe String)Source

Perform a request using Network.Curl

google_api :: String -> [(String, String)] -> StringSource

Constructs a string with the given arguments ready to be sent to Google's APIs

(.) :: a -> (a -> b) -> bSource

(-) :: (a -> b) -> a -> bSource

join :: [a] -> [[a]] -> [a]Source

escape_uri :: String -> StringSource

Can be used to validate the URI sent to Google's API

escapeURIChar :: (Char -> Bool) -> Char -> StringSource

Escapes a special character with UTF-8.

escapeURIStringSource

Arguments

:: (Char -> Bool)

a predicate which returns False if the character should be escaped

-> String

the string to process

-> String

the resulting URI string

Can be used to make a string valid for use in a URI.