twilio-0.1.3.0: Twilio REST API library for Haskell

Safe HaskellNone
LanguageHaskell98

Twilio.Internal.Resource

Synopsis

Documentation

This module repackages functionality exposed by MonadRequest into a set of classes that REST resources can easily consume. It also provides functions get and post that work well with type inference.

class Get r where Source

Get represents REST resources that support HTTP GET requests with any number of arguments.

Methods

get :: r Source

Instances

(MonadThrow m, Get2 a b r) => Get (a -> b -> TwilioT m r)

Instances of Get2 are instances of Get.

(MonadThrow m, Get1 a r) => Get (a -> TwilioT m r)

Instances of Get1 are instances of Get.

(MonadThrow m, Get0 r) => Get (TwilioT m r)

Instances of Get0 are instances of Get.

class Get2 a b r where Source

Get2 represents REST resources that support HTTP GET requests with 2 arguments.

Methods

get2 :: MonadThrow m => a -> b -> TwilioT m r Source

class Post r where Source

Post represents REST resources that support HTTP POST requests with any number of arguments.

Methods

post :: r Source

Instances

(MonadThrow m, Post3 a b c r) => Post (a -> b -> c -> TwilioT m r) 
(MonadThrow m, Post2 a b r) => Post (a -> b -> TwilioT m r) 
(MonadThrow m, Post1 a r) => Post (a -> TwilioT m r)

Instances of Post1 are instances of Post.

(MonadThrow m, Post0 r) => Post (TwilioT m r)

Instances of Post0 are instances of Post.

class Post0 r where Source

Post0 represents REST resources that support HTTP POST requests with 0 arguments.

Methods

post0 :: MonadThrow m => TwilioT m r Source

Instances

class Post1 a r where Source

Post1 represents REST resources that support HTTP POST requests with 1 argument.

Methods

post1 :: MonadThrow m => a -> TwilioT m r Source

class Post2 a b r where Source

Post2 represents REST resources that support HTTP POST requests with 2 arguments.

Methods

post2 :: MonadThrow m => a -> b -> TwilioT m r Source

class Post3 a b c r where Source

Post3 represents REST resources that support HTTP POST requests with 3 arguments.

Methods

post3 :: MonadThrow m => a -> b -> c -> TwilioT m r Source

Instances

class Delete r where Source

Delete represents REST resources that support HTTP DELETE requests with any number of arguments.

Methods

delete :: r Source

Instances

(MonadThrow m, Delete1 a) => Delete (a -> TwilioT m ())

Instances of Delete1 are instances of Delete.

class Delete1 a where Source

Delete1 represents REST resources that support HTTP POST requests with 1 argument.

Methods

delete1 :: MonadThrow m => a -> TwilioT m () Source

Instances