chatwork-0.1.3.0: The ChatWork API in Haskell

Safe HaskellNone
LanguageHaskell2010

ChatWork.Types

Contents

Synopsis

Documentation

type synonym of Response Json

type ChatWorkResponse a = JsonResponse' (Either ChatWorkErrors a) Source #

Wrapper type synonym of JsonResponse and ChatWorkErrors

Helper type class for constructing Request paramater

class ToReqParam a where Source #

Helper Type Class of QueryParam use to construct request parameter from param type, e.g. CreateRoomParams

Minimal complete definition

toReqParam

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> a -> param Source #

Instances

ToReqParam Int Source # 

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> Int -> param Source #

ToReqParam Text Source # 

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> Text -> param Source #

ToReqParam TaskStatus Source # 

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> TaskStatus -> param Source #

ToReqParam IconPreset Source # 

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> IconPreset -> param Source #

Show a => ToReqParam [a] Source # 

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> [a] -> param Source #

ToReqParam a => ToReqParam (Maybe a) Source # 

Methods

toReqParam :: (QueryParam param, Monoid param) => Text -> Maybe a -> param Source #

Orphan instances