| Copyright | (c) Connor Moreside 2016 |
|---|---|
| License | BSD-3 |
| Maintainer | connor@moresi.de |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Lightning.Types
Contents
Description
Re-exports all the main types one is likely to need.
- data LightningError
- data Session = Session {}
- data Visualization = Visualization {
- vizId :: Text
- vizSessionID :: Text
- vizBaseUrl :: Maybe Text
- type Pixel = [Word8]
- type Img = [[Pixel]]
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. |
Represents a lightning-viz session. A session ID is required to create a plot.
Constructors
| Session | |
data Visualization Source #
Encapsulates the basic information about a created visualization.
Constructors
| Visualization | |
Fields
| |
Instances
Can represent an RGBA [red, green, blue, alpha], RGB [red, green, blue], and GreyScale [intensity] pixel.