libstackexchange-0.1.0.0: StackExchange API interface

Safe HaskellNone

Network.StackExchange.Response

Contents

Description

Get response from Request and retrieve data from it

Synopsis

Schedule request

data SEException Source

StackExchange invalid response exception

Constructors

SEException 

Fields

_data :: ByteString

Recieved data

_error :: String

Parser/libstackexchange errors

askSE :: Request Ready n r -> IO rSource

Send Request and parse response

render :: Request a n r -> StringSource

Render Request as string for networking

Generalized combinator

aeson :: Monad m => (a -> Parser b) -> Action m a bSource

Generalized combinator, useful if full power of Aeson is needed

Convenience functions

field :: (Monad m, FromJSON a) => Text -> Action m (SE x) aSource

Select specific field in JSON

fields :: (Monad m, FromJSON a) => Text -> Action m Value [a]Source

Select specific fields of an array in JSON