License | BSD3 |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
- parseApiUrl :: MonadThrow m => ApiUrl a -> m (Tagged a Request)
- flowsRequest :: MonadThrow m => m (Tagged [Flow] Request)
- allFlowsRequest :: MonadThrow m => m (Tagged [Flow] Request)
- flowRequest :: MonadThrow m => ParamName Organisation -> ParamName Flow -> m (Tagged Flow Request)
- messagesRequest :: MonadThrow m => ParamName Organisation -> ParamName Flow -> MessageOptions -> m (Tagged [Message] Request)
- data MessageOptions
- defMessageOptions :: MessageOptions
- msgOptEvents :: Lens' MessageOptions [MessageEvent]
- msgOptLimit :: Lens' MessageOptions (Maybe Int)
- msgOptUntilId :: Lens' MessageOptions (Maybe MessageId)
- msgOptSinceId :: Lens' MessageOptions (Maybe MessageId)
- msgOptSorting :: Lens' MessageOptions Sorting
- data Sorting
- sortingToString :: Sorting -> String
- usersRequest :: MonadThrow m => m (Tagged [User] Request)
- orgUsersRequest :: MonadThrow m => ParamName Organisation -> m (Tagged [User] Request)
- flowUsersRequest :: MonadThrow m => ParamName Organisation -> ParamName Flow -> m (Tagged [User] Request)
- organisationsRequest :: MonadThrow m => m (Tagged [Organisation] Request)
- organisationRequest :: MonadThrow m => ParamName Organisation -> m (Tagged Organisation Request)
Request creation
parseApiUrl :: MonadThrow m => ApiUrl a -> m (Tagged a Request) Source
Convert a ApiUrl
into a Request
.
See parseUrl
Since this function uses MonadThrow
, the return monad can be anything that is an instance of MonadThrow
, such as IO
or Maybe
.
Flows
flowsRequest :: MonadThrow m => m (Tagged [Flow] Request) Source
allFlowsRequest :: MonadThrow m => m (Tagged [Flow] Request) Source
flowRequest :: MonadThrow m => ParamName Organisation -> ParamName Flow -> m (Tagged Flow Request) Source
Messages
messagesRequest :: MonadThrow m => ParamName Organisation -> ParamName Flow -> MessageOptions -> m (Tagged [Message] Request) Source
Options
sortingToString :: Sorting -> String Source
Users
usersRequest :: MonadThrow m => m (Tagged [User] Request) Source
orgUsersRequest :: MonadThrow m => ParamName Organisation -> m (Tagged [User] Request) Source
flowUsersRequest :: MonadThrow m => ParamName Organisation -> ParamName Flow -> m (Tagged [User] Request) Source
Organisations
organisationsRequest :: MonadThrow m => m (Tagged [Organisation] Request) Source
organisationRequest :: MonadThrow m => ParamName Organisation -> m (Tagged Organisation Request) Source