lightning-haskell-0.1.0.2: Haskell client for lightning-viz REST API

Copyright(c) Connor Moreside 2016
LicenseBSD-3
Maintainerconnor@moresi.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Web.Lightning.Types

Contents

Description

Re-exports all the main types one is likely to need.

Synopsis

Lightning Types

data LightningError Source #

Represents the different errors that may be raised in the lightning-viz wrapper.

Constructors

LightningError Object

Represents a JSON error returned by lightning-viz.

FailError Text

Represents a generic exception error.

ValidationError Text

Represents a validation error in a request record.

data Session Source #

Represents a lightning-viz session. A session ID is required to create a plot.

Constructors

Session 

Fields

data Visualization Source #

Encapsulates the basic information about a created visualization.

Constructors

Visualization 

Fields

type Pixel = [Word8] Source #

Can represent an RGBA [red, green, blue, alpha], RGB [red, green, blue], and GreyScale [intensity] pixel.

type Img = [[Pixel]] Source #

Represents an image as a matrix of pixels.