Copyright | (c) 2015, Markenwerk, Jan Greve |
---|---|
License | MIT |
Maintainer | jg@markenwerk.net |
Safe Haskell | None |
Language | Haskell2010 |
- data GoogleRequest
- = EncodingRequest { }
- | DecodingRequest { }
- data GoogleComponents = Components [String]
- data GoogleLocationTypes = LocationTypes [String]
- data GoogleResultTypes = ResultTypes [String]
- requestEncode :: Maybe Text -> Text -> IO ByteString
- requestDecode :: Maybe Text -> (Double, Double) -> IO ByteString
- requestRaw :: [(Text, Text)] -> IO ByteString
- requestRequest :: GoogleRequest -> IO ByteString
Data Types
data GoogleRequest Source
A Type abstracting possible API request argument combinations.
For convenience, the IsString
instance generates a encoding request and assumes the String
is the address.
data GoogleComponents Source
Abstraction for google's components
data GoogleLocationTypes Source
Abstraction for google's location types
data GoogleResultTypes Source
Abstraction for google's result types
Request methods
requestEncode :: Maybe Text -> Text -> IO ByteString Source
Convenience function to request a given address.
requestDecode :: Maybe Text -> (Double, Double) -> IO ByteString Source
Convenience function to request a given location.
requestRaw :: [(Text, Text)] -> IO ByteString Source
Constructs the URI to be used for the web service invocation from the input. Sends a request and returns the Lazy ByteString from IO.
requestRequest :: GoogleRequest -> IO ByteString Source
Sends a request based on a GoogleRequest
.