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

CopyrightNo Rights Reserved
LicensePublic Domain
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 rec Source

This retun type enumerates all possible failure modes.

Constructors

ExceptionResponse Text

Some exception occured while making the call to BitX, and this was the exception text.

ErrorResponse BitXError

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

ValidResponse rec

We received the data type we were expecting.

UnparseableResponse (Response ByteString)

BitX retuned data which couldn't be parsed, such as some text which was probably not JSON format.

Instances

Eq rec => Eq (BitXAPIResponse rec) 
Show rec => Show (BitXAPIResponse rec)