bitx-bitcoin-0.11.0.0: A Haskell library for working with the BitX bitcoin exchange.

Copyright2016 Tebello Thejane
LicenseBSD3
MaintainerTebello Thejane <zyxoas+hackage@gmail.com>
StabilityExperimental
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.BitX.Response

Description

The common return type of the API.

Synopsis

Documentation

data BitXAPIResponse recd Source #

This retun type enumerates all possible failure modes.

Constructors

ExceptionResponse HttpException

Some exception occured while making the call to BitX.

ErrorResponse BitXError

BitX returned an error record instead of returning the data we were expecting.

ValidResponse recd

We received the data type we were expecting.

UnparseableResponse Text (Response Text)

BitX retuned data which couldn't be parsed, such as some text which was probably not JSON format. The first value is the error given by Aeson upon trying to parse the response body.

Instances