O|@E      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  Session management types.(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNoneORepresents a lightning-viz session. A session ID is required to create a plot.The unique session ID The optional session name 2The timestamp of when the session was last updated Creation timestamp    Lightning error type(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNone QRepresents the different errors that may be raised in the lightning-viz wrapper. 2Represents a JSON error returned by lightning-viz.%Represents a generic exception error.2Represents a validation error in a request record.      Commonly used utility functions.(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNonewUsed in conjunction with ToJSON. It will stop any field that is Nothing (null) in a record from being encoded in JSON.mConverts the plot creation request record into the proper JSON object that the lightning-viz server expects.&Creates a payload for streaming plots.8Appends the session route and session id to current URL.GRetrieves all the links for each of the nodes in the adjacency matrix.4Retrieves all of the nodes from an adjacency matrix.(Zips up x and y points into array pairs..Zips up x, y, and z points into array triples.!Validates the bins of a histogramcVerify that the color specs are either in the form of [r, g, b] or a list of [[r,g,b],[r,g,b],...]CVerifiy that the color map specified is on of the colorbrewer maps.,Here are the available colorbrewer values: BrBG, PiYG, PRGn, PuOr, RdBu, RdGy, RdYlBu, RdYlGn, Spectral, Blues, BuGn, BuPu, GnBu, Greens, Greys, Oranges, OrRd, PuBu, PuBuGn, PuRd, Purples, RdPu, Reds, YlGn, YlGnBu, YlOrBr, YlOrRd, Accent, Dark2, Paired, Pastel1, Pastel2, Set1, Set2, Set3, or  Lightning2Verify that all size values are greater than zero.*Verify all alpha values are greater than 0/Verify all thickness values are greater than 0.2Verify that there is at least one element in list.BVerify that the length of vector x is equal to length of vector y. FVerify that the lenths of the x, y, and z vectors are the same length.!OVerify that the lengths of the region names are either 2 letters or 3 letters.x2 letter region names must correspond to US states and 3 letter region names must correspond to countries of the world."FVerify that the multi-dimensional list adheres to expected dimensions.%Ensure all values are greater than 0.#5Defines the default URL for the lightning-viz server.0The plot object to be serialized into JSON Value3The plot object with Nothing (null) fields removed.&The name of the type of plot to create5The plot creation request record in JSON Value format#The properly encoded payload objectData to update.$The properly encoded payload object.The current URL$The session ID to add to current URL#Returns the URL with the session IDThe adjacency matrix#All the links for each of the nodesThe adjacency matrix$A list of all of the nodes in matrixX pointsY pointsReturns [ [x, y] ] pairsX pointsY pointsZ pointsReturns [ [x, y, z] ] tripletsx vectory vector x vectory vectorz vector!"# !"# !"# !"#Visualization type(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNone $BEncapsulates the basic information about a created visualization.&)The unique identifier for a visualization'/The session ID the visualization was created in(Base URL gets filled in later Appends a % to a URL if it is not there already./Returns the permanent link for a visualization.7Returns a partial URL based on the link type parameter.)2Returns the embedded link URL for a visualization.*/Returns the iFrame link URL for a visualization+'Returns the PYM link for visualization.,,Returns the public link for a visualization.$%&'(Base URLReturns the formatted URL&The visualization to get permalink for(Returns the permalink for visualization. Visualization to create link for The link typeThe partially formatted URL)%Visualization to create embedded link+Returns the embedded link for visualization*'Visualization to create iFrame link for)Returns the iFrame link for visualization+$Visualization to create PYM link for&Returns the PYM link for visualization,(Visualization to create public link for.*Returns the public link for visualization. $%&'()*+, $%&'()*+, $%&'()*+,None-HFor use in IHaskell - Renders the visualization in an IHaskell notebook.-The visualization to render.-The HTML representation of the visualization.--- 6Defines route mappings to lightning-viz API endpoints.(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNonetThe main route that corresponds to the /visualizations endpoint. Using this route, one can create and update plots.@This route is used in conjunction with streaming plot functions.1Corresponds to the public URL of a visualization.%Returns a new route corresponding to  sessionIdvisualizations.Visualization to append,Returns the URL to update the visualization.0The visualization to create the public link for.1Route representing public link for visualization.Main Lightning Types(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNone!"C .Defines free monad transformer0Defines the available actionsRepresents a URL.6.Represents an IO Lightning transformer action.7#Allows plot fields to be validated.9Lifts a 0% free monad into the ReaderT context.:@Runs a route action within the free monadic transformer context.;FSends a request to the lightning-viz server to create a visualization.<mSends a request to either create a brand new streaming plot or to append data to an existing streaming plot.=7Sends a request containing JSON to the specified route.>7Send and receives a GET request to the specified route.?JReplaces the base URL in the stack and run the supplied action afterwards.@Returns an error message../0123456789: Route to run$Monad transformer stack with result.; The plot typeThe plot creation requestThe plot route.$Monad transformer stack with result.<8Visualization to update. If nothing, create a new plot. Plot type Plot payloadRoute to send plot to.$Monad transformer stack with result.=The JSON payloadRoute to send request to$Monad transformer stack with result.> The route to retrieve data from.$Monad transformer stack with result.?The new base URL.Next action to run.$Monad transformer stack with result.@The error message to return.#Monad transformer stack with error../0123456789:;<=>?@6012345./78:;<=>?@9./0123456789:;<=>?@Session management.(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNoneSession endpoint.A,Creates a new session with an optional name. An optional name for the session"The lightning-viz session endpointAAn optional session name(Returns the LightningT transformer stack AA A NoneBAdjacency plot parametersDMatrix that defines the connectivity of the plot. The dimensions of the matrix can be (n, n), (n, 2) or (n, 3). Matrix can be binary or continuous valued. Links should contain either 2 elements per link (source, target) or 3 elements (source, target, value).E8Text labels for each item (will label rows and columns).FList to set colors via groups.G1What to sort by; options are "group" or "degree."H(Whether or not to show numbers on cells.I(Whether or not to make links symetrical.JlSubmits a request to the specified lightning-viz server to create a sparse adjacency matrix visualiazation. 2http://lightning-viz.org/visualizations/adjacency/Adjacency Visualization BCDEFGHIJAdjacency plot to create.-Transformer stack with created visualization.$%&'(BCDEFGHIJBCDEFGHIJ None KForce plot parametersMMatrix that defines the connectivity of the plot. The dimensions of the matrix can be (n, n), (n, 2) or (n, 3). Matrix can be binary or continuous valued. Links should contain either 2 elements per link (source, target) or 3 elements (source, target, value).N-Values to set node colors via a linear scale.O'List of text labels to set as tooltips.P,Single RGB value or list to set node colors.Q5Single integer or list to set node colors via groups.R=Specification of color map, only colorbrewer types supported.S&Single size or list to set node sizes.T Whether or not to show tooltips.U Whether or not to allow zooming.V#Whether or not to support brushing.W|Submits a request to the specified lightning-viz server to create a force-directed network visualization from connectivity. .http://lightning-viz.org/visualizations/force/$Force-Directed Network VisualizationKLMNOPQRSTUVWForce plot to create.-Transformer stack with created visualization.$%&'(KLMNOPQRSTUVWK LMNOPQRSTUVWNoneXGraph plot parametersZx-points for node co-ordinates.[y-points for node co-ordinates.\Matrix that defines the connectivity of the plot. The dimensions of the matrix can be (n, n), (n, 2) or (n, 3). Matrix can be binary or continuous valued. Links should contain either 2 elements per link (source, target) or 3 elements (source, target, value).]-Values to set node colors via a linear scale.^+List of text labels to be used as tooltips._List to set node colors.`-List to set node colors via group assignment.a=Specification of color map; only colorbrewer types supported.bList to set node sizes.c Whether or not to show tooltips.d Whether or not to allow zooming.e#Whether or not to support brushing.fSubmits a request to the specified lightning-viz server to create a node-link graph from spatial points and their connectivity.XYZ[\]^_`abcdefGraph plot to create.-Transformer stack with created visualization.$%&'(XYZ[\]^_`abcdefX YZ[\]^_`abcdefNonegkSubmits a request to the specified lightning-viz server to create a bundled node-link graph visualization.gGraph plot to create.-Transformer stack with created visualization.$%&'(XYZ[\]^_`abcdeggNone hLine plot parametersjInput data for line plot, typically n series of lenght m. Can also pass a list where each individual series is of different lengths.k+Specify the index for the x-axis line plot.l/Single RGB value or list to set line colors to.mCSingle integer or list to set line colors to via group assignment.n0Single integer or list to set line thickness to.oLabel for x-axis.pLabel for y-axis.q Whether or not to allow zooming.rnSubmits a request to the specified lightning-viz server to create a plot to visualize one-dimensional series. -http://lightning-viz.org/visualizations/line/Line VisualizationhijklmnopqrLine plot to create.-Transformer stack with created visualization.$%&'(hijklmnopqrh ijklmnopqrNonesMap plot parametersuString identifies for map regions, either length of two characters (for states in a US map) or length of three (for counties in a world map).v"Values to use to color each reasonw;Specification of color map; only colorbrew types supported.xsSubmits a request to the specified lightning-viz server to create a chloropleth map of the world or united states. ,http://lightning-viz.org/visualizations/map/Map Visualization stuvwxMap plot to create.-Transformer stack with created visualization. $%&'(stuvwxstuvwxNoneyMatrix plot parameters{$Two-dimensional list of matrix data.|List of strings to label rows.}!List of strings to label columns.~=Specification of color map; only colorbrewer types supported.,Whether or not to show numbers on the cells.bSubmits a request to the specified lightning-viz server to create a heat map of the given matrix. /http://lightning-viz.org/visualizations/matrix/Matrix Visualization yz{|}~Matrix plot to create.-Transformer stack with created visualization.   $%&'(yz{|}~yz{|}~   NoneCircle plot parametersMatrix that defines the connectivity of the plot. The dimensions of the matrix can be (n, n), (n, 2) or (n, 3). Matrix can be binary or continuous valued. Links should contain either 2 elements per link (source, target) or 3 elements (source, target, value).List to set colors via groups.(k, 3) : List of rbg values to set colors of top-level group, where k is the number of unique elements in the top-level group.#List of text labels to label nodes.kSubmits a request to the specified lightning-viz server to create a circular graph from connectivity data. /http://lightning-viz.org/visualizations/circle/Circle Visualization Circle plot to create.-Transformer stack with created visualization.   $%&'(  NoneHistogram plot parametersWSubmits a request to the specified lightning-viz server to create a plot to histogram. 2http://lightning-viz.org/visualizations/histogram/HistogramPlot Visualization Histogram plot to create.-Transformer stack with created visualization. $%&'(NoneScatter plot parametersList of x points.List of y points.-Values to set node colors via a linear scale.$List of text labels to set tooltips.!List of rgb values to set colors.List to set colors via groups.=Specification of color map; only colorbrewer types supported.List to set point sizes.4List of alpha values to set file and stroke opacity.Label for x-axis.Label for y-axis.#Whether or not to display tooltips. Whether or not to allow zooming.#Whether or not to support brushing.RSubmits a request to the specified lightning-viz server to create a scatter plot. 2http://lightning-viz.org/visualizations/adjacency/Scatter VisualizationScatter plot to create.-Transformer stack with created visualization.$%&'(None Scatter Plot 3D parametersList of x points.List of y points.List of z points.!List of rgb values to set colors.List to set colors via groups.List to set point sizes.4List of alpha values to set file and stroke opacity.USubmits a request to the specified lightning-viz server to create a 3D scatter plot. 2http://lightning-viz.org/visualizations/scatter-3/Scatter Visualization Scatter plot to create-Transformer stack with created visualization.$%&'(None Streaming line plot parametersInput data for line plot, typically n series of lenght m. Can also pass a list where each individual series is of different lengths.+Specify the index for the x-axis line plot./Single RGB value or list to set line colors to.CSingle integer or list to set line colors to via group assignment.Sets the line thicknessLabel for the x axisLabel for the y axis=The maximum number of time points to show before plot shifts.!Whether or not to enable zooming.=Plot streaming one-dimensional series data as updating lines. 2http://lightning-viz.org/visualizations/streaming/Streaming Line VisualizationLine plot to create / update.-Transformer stack with created visualization.$%&'( NoneScatter plot parametersList of x points.List of y points.-Values to set node colors via a linear scale.$List of text labels to set tooltips.!List of rgb values to set colors.List to set colors via groups.=Specification of color map; only colorbrewer types supported.List to set point sizes.Label for x-axis.Label for y-axis.#Whether or not to display tooltips. Whether or not to allow zooming.#Whether or not to support brushing./The visualization to update. If Nothing, create+Create a streaming scatter plot of x and y./Plotting once returns a visualization on which append can be called to add new data in a streaming fashion. The opacity of old and new data is automatically set to highlight the most recent data and fade old data away. 2http://lightning-viz.org/visualizations/streaming/Streaming Scatter Visualization Scatter plot to create / update.-Transformer stack with created visualization.$%&'( Re-exports main types.(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNone*Represents an image as a matrix of pixels.jCan represent an RGBA [red, green, blue, alpha], RGB [red, green, blue], and GreyScale [intensity] pixel. $%&'(  $%&'(NoneVolume plot parametersdA collection of images to display. Can be 2 dimensional (grey scale) or 3 dimensional (RGB) lists.Submits a request to the specified lightning-viz server to create a visualization of a collection of images as a three-dimensional volume. /http://lightning-viz.org/visualizations/volume/Volume Visualization"Base URL for lightning-viz server.Volume plot to create-Transformer stack with created visualization. $%&'( Lightning Plots(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNone!"BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~̉BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~lightning-viz REST API wrapper.(c) Connor Moreside, 2016BSD-3connor@moresi.de experimentalPOSIXNoneU<Stores the current state of the lightning transformer stack.-Current base URL of the lightning-viz server./Current connection manager used to run actions.5The current lightning session to run actions against.QHook to add auth credentials on performing a request to the lightning-viz sever.@Defines the available options for running a lightning action(s).<Re-usable connection manager used during Lightning session."The base lightning-viz server url.PThe authentication mechanism used to communicate with the lightning-viz server.Defines what session to use when creating viaualizations on the lightning-viz server. If no session is specified, one will be created automatically.#KUsername and password pair for authenticating to the lightning-viz server. ZRepresents the different authentication mechanisms available in the lightning-viz server.No authentication requiredHTTP Basic Authentication*Defines the default lightning-viz options.3Sets the base URL of Lightning's API in the given  record.:Sets the name of the session that is nested in the given  record.8Sets the session ID of the session nested in the given  record.Sets  with ## as the login method in the given  record. Performs a lightning action (or .} transformer actions) with the default lightning options. By default, the lightning-viz server is assumed to be running on  http://localhost:3000# and a new session will be created. Performs a lightning action (or .< transformer actions) with the specified lightning options.-Runs a specified series of lightning actions.4Runs a lightning action using the specified options.$1Runs the specified route using the current state.%URuns the specified route and sends the specified JSON value as the the request body.& Creates a 'G record to keep track of the lightning-viz server's name and base URL.(&Unwraps the response from interpretIO.#Fully qualified API base URLThe new session nameThe new session ID$%&()*5 ./0123456789:;<=>?@#$%&()*+  ! ! " # $ %&&'()*+,-./0123456789:;<==>?@ABCDEFFGHIJKLMNOPQRSTUVWX Y Y Z [ \ ] ^ _ ` a a b c d e f g h i j k lmmnopqrstuvwxyz{||}~                !"#$%&'()*+,-+,./012345678Bsw3OFFc8wi9Z9U5z0UKiV Web.LightningWeb.Lightning.SessionWeb.Lightning.Types.ErrorWeb.Lightning.Utilities!Web.Lightning.Types.VisualizationWeb.Lightning.RenderWeb.Lightning.Types.LightningWeb.Lightning.PlotsWeb.Lightning.TypesWeb.Lightning.Types.SessionWeb.Lightning.RoutesWeb.Lightning.Plots.AdjacencyWeb.Lightning.Plots.ForceWeb.Lightning.Plots.Graph Web.Lightning.Plots.GraphBundledWeb.Lightning.Plots.LineWeb.Lightning.Plots.MapWeb.Lightning.Plots.MatrixWeb.Lightning.Plots.CircleWeb.Lightning.Plots.HistogramWeb.Lightning.Plots.ScatterWeb.Lightning.Plots.Scatter3Web.Lightning.Plots.LineStream!Web.Lightning.Plots.ScatterStreamWeb.Lightning.Plots.Volumeapibu_96DJ1tLyQraC2ZRJDiE6aRNetwork.API.Builder.Error EmptyError ParseErrorInvalidURLError HTTPErrorAPIErrorSessionsnIdsnName snUpdated snCreatedLightningError FailErrorValidationError omitNulls createPayLoadcreateDataPayLoad addSessionIdgetLinksgetNodes getPoints getPoints3 validateBin validateColorvalidateColorMap validateSize validateAlphavalidateThickness validateIndexvalidateCoordinatesvalidateCoordinates3validateRegion validateConndefaultBaseURL VisualizationvizId vizSessionID vizBaseUrl getEmbedLink getIFrameLink getPymLink getPublicLink renderPlot LightningT LightningFFailWith ReceiveRouteRunRouteSendJSON WithBaseURL LightningValidatablePlot validatePlotliftLightningFrunRoutesendPlot streamPlotsendJSON receiveRoute withBaseURLfailWith createSession AdjacencyPlotapConnapLabelsapGroupapSort apNumbers apSymmetric adjacencyPlot ForcePlotfpConnfpValuesfpLabelsfpColorfpGroup fpColorMapfpSize fpToolTipsfpZoomfpBrush forcePlot GraphPlotgpXgpYgpConngpValuesgpLabelsgpColorsgpGroup gpColorMapgpSize gpToolTipsgpZoomgpBrush graphPlotgraphBundledPlotLinePlotlpSerieslpIndexlpColorlpGroup lpThicknesslpXaxislpYaxislpZoomlinePlotMapPlot mppRegions mppWeights mppColorMapmapPlot MatrixPlotmpMatrix mpRowLabels mpColLabels mpColorMap mpNumbers matrixPlot CirclePlotcpConncpGroupcpColorcpLabels circlePlot HistogramPlothpValueshpBinshpZoom histogramPlot ScatterPlotspXspYspValuesspLabelsspColorspGroup spColorMapspSizespAlphaspXaxisspYaxis spToolTipsspZoomspBrush scatterPlot Scatter3PlotsptXsptYsptZ sptColors sptGroupssptSizesptAlpha scatter3PlotLineStreamPlot lspSerieslspIndexlspColorlspGrouplspSizelspXAxislspYAxis lspMaxWidthlspZoomlspVisualizationstreamingLinePlotScatterStreamPlotsspXsspY sspValues sspLabelssspColorsspGroup sspColorMapsspSizesspXaxissspYaxis sspToolTipssspZoomsspBrushsspVisualizationstreamingScatterPlotImgPixel VolumePlotvpImages volumePlotLightningStatestCurrentBaseURL stConnManager stSession stApplyAuthLightningOptionsoptConnManager optHostUrloptLoginMethod optSession LoginMethod Anonymous BasicAuthdefaultLightningOptions setBaseURLsetSessionName setSessionId setBasicAuth runLightningrunLightningWith interpretIOrunResumeLightningtWith$fDefaultSession$fReceivableSession$fFromJSONSession$fErrorReceivableLightningError$fFromJSONLightningErrorvalidateGreaterThan0 zipWithIndex formatURLbaseGHC.Real/getPermaLinkURL getLinkType$fReceivableVisualization$fFromJSONVisualizationplotstream publicLinkBaseUrl$fMonadTransLightningT$fMonadIOLightningT$fFunctorLightningFcreateSessionRoute$fValidatablePlotAdjacencyPlot$fToJSONAdjacencyPlot$fDefaultAdjacencyPlot$fValidatablePlotForcePlot$fToJSONForcePlot$fDefaultForcePlot$fValidatablePlotGraphPlot$fToJSONGraphPlot$fDefaultGraphPlot$fValidatablePlotLinePlot$fToJSONLinePlot$fDefaultLinePlot$fValidatablePlotMapPlot$fToJSONMapPlot$fDefaultMapPlot$fValidatablePlotMatrixPlot$fToJSONMatrixPlot$fDefaultMatrixPlot$fValidatablePlotCirclePlot$fToJSONCirclePlot$fDefaultCirclePlot$fValidatablePlotHistogramPlot$fToJSONHistogramPlot$fDefaultHistogramPlot$fValidatablePlotScatterPlot$fToJSONScatterPlot$fDefaultScatterPlot$fValidatablePlotScatter3Plot$fToJSONScatter3Plot$fDefaultScatter3Plot$fValidatablePlotLineStreamPlot$fToJSONLineStreamPlot$fDefaultLineStreamPlot"$fValidatablePlotScatterStreamPlot$fToJSONScatterStreamPlot$fDefaultScatterStreamPlot$fValidatablePlotVolumePlot$fToJSONVolumePlot$fDefaultVolumePlotdatad_K91y8NcZUJI9yaBI61rgdDData.Default.ClassDefaultdef Credentials handleReceivehandleSendJSONbuilderFromStateNetwork.API.Builder.BuilderBuilder dropResume$fDefaultLightningOptions$fDefaultLoginMethod