prettyprinter-graphviz-0.1.1.0: a prettyprinter backend for graphviz

Safe HaskellNone
LanguageHaskell2010

Data.Text.Prettyprint.Doc.Render.GraphViz

Contents

Synopsis

Rendering functions

render :: Doc Attribute -> Label Source #

Render a document as a GraphViz label, using defaultLayoutOptions.

render' :: SimpleDocStream Attribute -> Text Source #

Render a document stream as HTML text for GraphViz. This provides more fine-grained control than render.

Error handling

data GraphVizRenderError Source #

The functions in this module can throw errors, given a malformed document stream. The average user is very unlikely to run into this, but error handling functionality is provided for completeness.

Instances
Eq GraphVizRenderError Source # 
Instance details

Defined in Data.Text.Prettyprint.Doc.Render.GraphViz

Ord GraphVizRenderError Source # 
Instance details

Defined in Data.Text.Prettyprint.Doc.Render.GraphViz

Read GraphVizRenderError Source # 
Instance details

Defined in Data.Text.Prettyprint.Doc.Render.GraphViz

Show GraphVizRenderError Source # 
Instance details

Defined in Data.Text.Prettyprint.Doc.Render.GraphViz

Exception GraphVizRenderError Source # 
Instance details

Defined in Data.Text.Prettyprint.Doc.Render.GraphViz

renderSafe' :: SimpleDocStream Attribute -> Either GraphVizRenderError Text Source #

A total version of 'render\''. This can be seen as a generalisation of any of the other functions exported by this module.