|
ReviewBoard.Core | Portability | portable | Stability | experimental | Maintainer | adam.smyczek@gmail.com |
|
|
|
|
|
Description |
The core module implements the base types and functions of the bindings.
|
|
Synopsis |
|
|
|
|
RB action monad
|
|
|
The action monad, a state with error handler.
RBAction represents one ReviewBoard session that handles multiple API calls.
The RBAction runner runRBAction performs a login into the ReviewBoard server
and initializes the session. All session related parameters are stored in
the RBState of the action.
Errors are handled in two ways:
- Network related error are immediately thrown using ErrorT throwError.
- ReviewRequest response errors are handled using the error handler defined
in RBState (default print).
| Instances | |
|
|
|
Run for RBAction, performs a login using provided URL, user
and password parameters and executes the action. When login fails
runRBAction returns immediately with an error.
|
|
|
Convenient lift for BrowserActions
|
|
|
The request runner, generates request from provided Form parameter,
executes the requests and handles the response using the handler function.
|
|
|
Type of the request, Web API or default HTTP
| Constructors | | Instances | |
|
|
RB state
|
|
|
RB action state containing session related information.
| Constructors | RBState | | rbUrl :: String | ReviewBoard server URL
| rbUser :: String | Logged in user
| rbSessionId :: Maybe Cookie | Session id cookie retrieve from a successful login
| rbErrHandler :: String -> IO () | Error handler, for example error or print
|
|
| Instances | |
|
|
|
Set error handler used for ReviewBoard error responses.
|
|
|
Enable/disable debug output for Browser module
|
|
Response type
|
|
|
Response type return by every API function
| Constructors | RBok JSValue | Successful response, contains JSON response object
| RBerr String | Response error including error message including
encoded response
|
| Instances | |
|
|
|
Convenient response converter
|
|
Utils
|
|
|
Create ReviewBoard specific URI for a Web API call URL.
|
|
Produced by Haddock version 2.3.0 |