twilio-0.2.0.1: Twilio REST API library for Haskell

Copyright(C) 2017- Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Twilio.Internal.Request

Description

 

Synopsis

Documentation

newtype RequestF a Source #

RequestF represents an HTTP request and stores a continuaton for the eventual Response to the request.

Constructors

RequestF (Request, Response ByteString -> a) 

Instances

Functor RequestF Source # 

Methods

fmap :: (a -> b) -> RequestF a -> RequestF b #

(<$) :: a -> RequestF b -> RequestF a #

Generic (RequestF a) Source # 

Associated Types

type Rep (RequestF a) :: * -> * #

Methods

from :: RequestF a -> Rep (RequestF a) x #

to :: Rep (RequestF a) x -> RequestF a #

type Rep (RequestF a) Source # 
type Rep (RequestF a) = D1 * (MetaData "RequestF" "Twilio.Internal.Request" "twilio-0.2.0.1-Cwy6vZAHYb886DlZ9eauoR" True) (C1 * (MetaCons "RequestF" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Request, Response ByteString -> a))))

newtype RequestT m a Source #

RequestT m a augments an existing monad m with the ability to perform HTTP requests for Resources.

Constructors

RequestT 

Fields

Instances

MonadTrans RequestT Source # 

Methods

lift :: Monad m => m a -> RequestT m a #

Monad m => Monad (RequestT m) Source # 

Methods

(>>=) :: RequestT m a -> (a -> RequestT m b) -> RequestT m b #

(>>) :: RequestT m a -> RequestT m b -> RequestT m b #

return :: a -> RequestT m a #

fail :: String -> RequestT m a #

Monad m => Functor (RequestT m) Source # 

Methods

fmap :: (a -> b) -> RequestT m a -> RequestT m b #

(<$) :: a -> RequestT m b -> RequestT m a #

Monad m => Applicative (RequestT m) Source # 

Methods

pure :: a -> RequestT m a #

(<*>) :: RequestT m (a -> b) -> RequestT m a -> RequestT m b #

liftA2 :: (a -> b -> c) -> RequestT m a -> RequestT m b -> RequestT m c #

(*>) :: RequestT m a -> RequestT m b -> RequestT m b #

(<*) :: RequestT m a -> RequestT m b -> RequestT m a #

MonadIO m => MonadIO (RequestT m) Source # 

Methods

liftIO :: IO a -> RequestT m a #

Monad m => MonadRequest (RequestT m) Source # 
Generic (RequestT m a) Source # 

Associated Types

type Rep (RequestT m a) :: * -> * #

Methods

from :: RequestT m a -> Rep (RequestT m a) x #

to :: Rep (RequestT m a) x -> RequestT m a #

type Rep (RequestT m a) Source # 
type Rep (RequestT m a) = D1 * (MetaData "RequestT" "Twilio.Internal.Request" "twilio-0.2.0.1-Cwy6vZAHYb886DlZ9eauoR" True) (C1 * (MetaCons "RequestT" PrefixI True) (S1 * (MetaSel (Just Symbol "runRequestT") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (FreeT RequestF m a))))

class Monad m => MonadRequest m where Source #

Minimal complete definition

request

Methods

request :: (Response ByteString -> m a) -> Request -> m a Source #

baseURL :: Text Source #

A dummy interpreter

runRequest' :: MonadIO m => (Text, Text) -> RequestT m a -> m a Source #