smith-client-0.0.1: API client for <https://smith.st/ Smith>.

Safe HaskellNone
LanguageHaskell2010

Smith.Client

Contents

Description

Smith Client top-level module.

Designed to be import qualified:

import qualified Smith.Client as Smith
Synopsis

Smith runtime data

Smith OAuth2 Scopes

Smith configuration operations.

Smith configuration errors and default handler.

Smith API definition runners.

runRequest :: Smith -> Request a -> IO (Either SmithError a) Source #

Takes Smith runtime data, and an API request definition and actually runs the request. Results are in IO and the error cases handled explicitly.

runRequestT :: Smith -> Request a -> ExceptT SmithError IO a Source #

Takes Smith runtime data, and an API request definition and actually runs the request. Results are embeded in ExceptT for convenience.

Smith API definitions.