docusign-client-0.0.3: Client bindings for the DocuSign API

Safe HaskellNone
LanguageHaskell2010

DocuSign.Client.Types.Parsing

Description

This module contains conversion operations that have the potential to fail.

Such conversions are typically used when processing messages received from a DocuSign server instance, which may return values that are incomplete.

Such messages typically include record instances for which only a subset of values are present. The precise subset of values included often depends on which particular operation was invoked, or on the current server state.

The knowledge of when to expect that values will be present (and when to expect that they will be missing) is encapsulated in this module.

Synopsis

Documentation

class Parse a b where Source #

A class for conversions that have the potential to fail.

Methods

parse :: a -> Maybe b Source #

parseM :: forall a b m. MonadThrow m => Parse a b => Show a => Typeable a => Typeable b => a -> m b Source #

Parse a value monadically.

data ParseFailure a b Source #

Thrown when the base API fails to return a value that was expected.

Constructors

ParseFailure