graphviz-2999.20.2.1: Bindings to Graphviz for graph visualisation.

Copyright | (c) Ivan Lazar Miljenovic
License | 3-Clause BSD-style
Maintainer | Ivan.Miljenovic@gmail.com
Safe Haskell | None
Language | Haskell2010

Data.GraphViz.Attributes.HTML

Description

This module is written to be imported qualified. It defines the syntax for HTML-like values for use in Graphviz. Please note that these values are not really HTML, but the term "HTML" is used throughout as it is less cumbersome than "HTML-like". To be able to use this, the version of Graphviz must be at least 1.10. For more information, please see: http://graphviz.org/doc/info/shapes.html#html

The actual definition of the syntax specifies that these types must be valid XML syntax. As such, this assumed when printing and parsing, though the correct escape/descaping for `"`, `&`, `<` and `>` are automatically done when printing and parsing.

Differences from how Graphviz treats HTML-like values:

- Graphviz only specifies the above-listed characters must be escaped; however, internally it also escapes `-`, `'` and multiple sequences of spaces. This library attempts to match this behaviour. Please let me know if this behaviour (especially about escaping multiple spaces) is unwanted.
- When parsing escaped HTML characters, numeric escapes are converted to the corresponding character as are the various characters listed above; all other escaped characters (apart from those listed above) are silently ignored and removed from the input (since technically these must be valid XML, which doesn't recognise as many named escape characters as does HTML).
- All whitespace read in is kept (even if Graphviz would ignore multiple whitespace characters); when printing them, however, they are replaced with non-breaking spaces. As such, if multiple literal whitespace characters are used in a sequence, then the result of parsing and then printing some Dot code will not be the same as the initial Dot code. Furthermore, all whitespace characters are printed as spaces.
- It is assumed that all parsed `&` values are the beginning of an XML escape sequence (which must finish with a `;` character).
- There should be no pre-escaped characters in values; when printing, the `&` will get escaped without considering if that is an escaped character.

Synopsis

- data Label
  - = Text Text
  - | Table Table
- type Text = [TextItem]
- data TextItem
  - = Str Text
  - | Newline Attributes
  - | Font Attributes Text
  - | Format Format Text
- data Format
  - = Italics
  - | Bold
  - | Underline
  - | Overline
  - | Subscript
  - | Superscript
- data Table = HTable {
  - tableFontAttrs :: Maybe Attributes
  - tableAttrs :: Attributes
  - tableRows :: [Row]
  }
- data Row
  - = Cells [Cell]
  - | HorizontalRule
- data Cell
  - = LabelCell Attributes Label
  - | ImgCell Attributes Img
  - | VerticalRule
- newtype Img = Img Attributes
- type Attributes = [Attribute]
- data Attribute
  - = Align Align
  - | BAlign Align
  - | BGColor Color
  - | Border Word8
  - | CellBorder Word8
  - | CellPadding Word8
  - | CellSpacing Word8
  - | Color Color
  - | ColSpan Word16
  - | Columns CellFormat
  - | Face Text
  - | FixedSize Bool
  - | GradientAngle Int
  - | Height Word16
  - | HRef Text
  - | ID Text
  - | PointSize Double
  - | Port PortName
  - | Rows CellFormat
  - | RowSpan Word16
  - | Scale Scale
  - | Sides [Side]
  - | Src FilePath
  - | Style Style
  - | Target Text
  - | Title Text
  - | VAlign VAlign
  - | Width Word16
- data Align
  - = HLeft
  - | HCenter
  - | HRight
  - | HText
- data VAlign
  - = HTop
  - | HMiddle
  - | HBottom
- data CellFormat = RuleBetween
- data Scale
  - = NaturalSize
  - | ScaleUniformly
  - | ExpandWidth
  - | ExpandHeight
  - | ExpandBoth
- data Side
  - = LeftSide
  - | RightSide
  - | TopSide
  - | BottomSide
- data Style
  - = Rounded
  - | Radial

# Documentation

data Label Source #

The overall type for HTML-like labels. Fundamentally, HTML-like values in Graphviz are either textual (i.e. a single element with formatting) or a table. Note that `Label` values can be nested via `LabelCell`.

Constructors

Text Text |
Table Table |

#### Instances

Instances details

Read Label Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Label Source # readList :: ReadS [Label] Source # readPrec :: ReadPrec Label Source # readListPrec :: ReadPrec [Label] Source #
Show Label Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Label -> ShowS Source # show :: Label -> String Source # showList :: [Label] -> ShowS Source #
Eq Label Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Label -> Label -> Bool Source # (/=) :: Label -> Label -> Bool Source #
Ord Label Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Label -> Label -> Ordering Source # (<) :: Label -> Label -> Bool Source # (<=) :: Label -> Label -> Bool Source # (>) :: Label -> Label -> Bool Source # (>=) :: Label -> Label -> Bool Source # max :: Label -> Label -> Label Source # min :: Label -> Label -> Label Source #
Labellable Label Source # |
Instance details Defined in Data.GraphViz.Attributes Methods toLabelValue :: Label -> Label Source #
ParseDot Label Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Label Source # parse :: Parse Label Source # parseUnqtList :: Parse [Label] Source # parseList :: Parse [Label] Source #
PrintDot Label Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Label -> DotCode Source # toDot :: Label -> DotCode Source # unqtListToDot :: [Label] -> DotCode Source # listToDot :: [Label] -> DotCode Source #

type Text = [TextItem] Source #

Represents a textual component of an HTML-like label. It is assumed that a `Text` list is non-empty. It is preferable to "group" `Str` values together rather than have individual ones. Note that when printing, the individual values are concatenated together without spaces, and when parsing anything that isn't a tag is assumed to be a `Str`: that is, something like "`<BR/> <BR/>`" is parsed as:

    [Newline [], Str " ", Newline []]

data TextItem Source #

Textual items in HTML-like labels.

Constructors

Str Text |
Newline Attributes | Only accepts an optional `Align` `Attribute`; defined this way for ease of printing/parsing.
Font Attributes Text |
Format Format Text | Only available in Graphviz >= 2.28.0.

#### Instances

Instances details

Read TextItem Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS TextItem Source # readList :: ReadS [TextItem] Source # readPrec :: ReadPrec TextItem Source # readListPrec :: ReadPrec [TextItem] Source #
Show TextItem Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> TextItem -> ShowS Source # show :: TextItem -> String Source # showList :: [TextItem] -> ShowS Source #
Eq TextItem Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: TextItem -> TextItem -> Bool Source # (/=) :: TextItem -> TextItem -> Bool Source #
Ord TextItem Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: TextItem -> TextItem -> Ordering Source # (<) :: TextItem -> TextItem -> Bool Source # (<=) :: TextItem -> TextItem -> Bool Source # (>) :: TextItem -> TextItem -> Bool Source # (>=) :: TextItem -> TextItem -> Bool Source # max :: TextItem -> TextItem -> TextItem Source # min :: TextItem -> TextItem -> TextItem Source #
Labellable Text Source # |
Instance details Defined in Data.GraphViz.Attributes Methods toLabelValue :: Text -> Label Source #
ParseDot TextItem Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse TextItem Source # parse :: Parse TextItem Source # parseUnqtList :: Parse [TextItem] Source # parseList :: Parse [TextItem] Source #
PrintDot TextItem Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: TextItem -> DotCode Source # toDot :: TextItem -> DotCode Source # unqtListToDot :: [TextItem] -> DotCode Source # listToDot :: [TextItem] -> DotCode Source #

data Format Source #

Constructors

Italics |
Bold |
Underline |
Overline | Requires Graphviz >= 2.38.0.
Subscript |
Superscript |

#### Instances

Instances details

Bounded Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: Format Source # maxBound :: Format Source #
Enum Format Source # |

Instance details

Defined in Data.GraphViz.Attributes.HTML

Methods

succ :: Format -> Format Source #

pred :: Format -> Format Source #

toEnum :: Int -> Format Source #

fromEnum :: Format -> Int Source #

enumFrom :: Format -> [Format] Source #

enumFromThen :: Format -> Format -> [Format] Source #

enumFromTo :: Format -> Format -> [Format] Source #

enumFromThenTo :: Format -> Format -> Format -> [Format] Source #

Read Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Format Source # readList :: ReadS [Format] Source # readPrec :: ReadPrec Format Source # readListPrec :: ReadPrec [Format] Source #
Show Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Format -> ShowS Source # show :: Format -> String Source # showList :: [Format] -> ShowS Source #
Eq Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Format -> Format -> Bool Source # (/=) :: Format -> Format -> Bool Source #
Ord Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Format -> Format -> Ordering Source # (<) :: Format -> Format -> Bool Source # (<=) :: Format -> Format -> Bool Source # (>) :: Format -> Format -> Bool Source # (>=) :: Format -> Format -> Bool Source # max :: Format -> Format -> Format Source # min :: Format -> Format -> Format Source #
ParseDot Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Format Source # parse :: Parse Format Source # parseUnqtList :: Parse [Format] Source # parseList :: Parse [Format] Source #
PrintDot Format Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Format -> DotCode Source # toDot :: Format -> DotCode Source # unqtListToDot :: [Format] -> DotCode Source # listToDot :: [Format] -> DotCode Source #

data Table Source #

A table in HTML-like labels. Tables are optionally wrapped in overall `FONT` tags.

Constructors

HTable |

Fields

- tableFontAttrs :: Maybe Attributes

  Optional `FONT` attributes. ``Just` []` denotes empty `FONT` tags; ``Nothing`` denotes no such tags.

- tableAttrs :: Attributes
- tableRows :: [Row]

  This list is assumed to be non-empty.

#### Instances

Instances details

Read Table Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Table Source # readList :: ReadS [Table] Source # readPrec :: ReadPrec Table Source # readListPrec :: ReadPrec [Table] Source #
Show Table Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Table -> ShowS Source # show :: Table -> String Source # showList :: [Table] -> ShowS Source #
Eq Table Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Table -> Table -> Bool Source # (/=) :: Table -> Table -> Bool Source #
Ord Table Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Table -> Table -> Ordering Source # (<) :: Table -> Table -> Bool Source # (<=) :: Table -> Table -> Bool Source # (>) :: Table -> Table -> Bool Source # (>=) :: Table -> Table -> Bool Source # max :: Table -> Table -> Table Source # min :: Table -> Table -> Table Source #
Labellable Table Source # |
Instance details Defined in Data.GraphViz.Attributes Methods toLabelValue :: Table -> Label Source #
ParseDot Table Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Table Source # parse :: Parse Table Source # parseUnqtList :: Parse [Table] Source # parseList :: Parse [Table] Source #
PrintDot Table Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Table -> DotCode Source # toDot :: Table -> DotCode Source # unqtListToDot :: [Table] -> DotCode Source # listToDot :: [Table] -> DotCode Source #

data Row Source #

A row in a `Table`. The list of `Cell` values is assumed to be non-empty.

Constructors

Cells [Cell] |
HorizontalRule | Should be between `Cells` values, requires Graphviz >= 2.29.0

#### Instances

Instances details

Read Row Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Row Source # readList :: ReadS [Row] Source # readPrec :: ReadPrec Row Source # readListPrec :: ReadPrec [Row] Source #
Show Row Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Row -> ShowS Source # show :: Row -> String Source # showList :: [Row] -> ShowS Source #
Eq Row Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Row -> Row -> Bool Source # (/=) :: Row -> Row -> Bool Source #
Ord Row Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Row -> Row -> Ordering Source # (<) :: Row -> Row -> Bool Source # (<=) :: Row -> Row -> Bool Source # (>) :: Row -> Row -> Bool Source # (>=) :: Row -> Row -> Bool Source # max :: Row -> Row -> Row Source # min :: Row -> Row -> Row Source #
ParseDot Row Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Row Source # parse :: Parse Row Source # parseUnqtList :: Parse [Row] Source # parseList :: Parse [Row] Source #
PrintDot Row Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Row -> DotCode Source # toDot :: Row -> DotCode Source # unqtListToDot :: [Row] -> DotCode Source # listToDot :: [Row] -> DotCode Source #

data Cell Source #

Cells either recursively contain another `Label` or else a path to an image file.

Constructors

LabelCell Attributes Label |
ImgCell Attributes Img |
VerticalRule | Should be between `LabelCell` or `ImgCell` values, requires Graphviz >= 2.29.0

#### Instances

Instances details

Read Cell Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Cell Source # readList :: ReadS [Cell] Source # readPrec :: ReadPrec Cell Source # readListPrec :: ReadPrec [Cell] Source #
Show Cell Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Cell -> ShowS Source # show :: Cell -> String Source # showList :: [Cell] -> ShowS Source #
Eq Cell Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Cell -> Cell -> Bool Source # (/=) :: Cell -> Cell -> Bool Source #
Ord Cell Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Cell -> Cell -> Ordering Source # (<) :: Cell -> Cell -> Bool Source # (<=) :: Cell -> Cell -> Bool Source # (>) :: Cell -> Cell -> Bool Source # (>=) :: Cell -> Cell -> Bool Source # max :: Cell -> Cell -> Cell Source # min :: Cell -> Cell -> Cell Source #
ParseDot Cell Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Cell Source # parse :: Parse Cell Source # parseUnqtList :: Parse [Cell] Source # parseList :: Parse [Cell] Source #
PrintDot Cell Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Cell -> DotCode Source # toDot :: Cell -> DotCode Source # unqtListToDot :: [Cell] -> DotCode Source # listToDot :: [Cell] -> DotCode Source #

newtype Img Source #

The path to an image; accepted `Attributes` are `Scale` and `Src`.

Constructors

Img Attributes |

#### Instances

Instances details

Read Img Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Img Source # readList :: ReadS [Img] Source # readPrec :: ReadPrec Img Source # readListPrec :: ReadPrec [Img] Source #
Show Img Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Img -> ShowS Source # show :: Img -> String Source # showList :: [Img] -> ShowS Source #
Eq Img Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Img -> Img -> Bool Source # (/=) :: Img -> Img -> Bool Source #
Ord Img Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Img -> Img -> Ordering Source # (<) :: Img -> Img -> Bool Source # (<=) :: Img -> Img -> Bool Source # (>) :: Img -> Img -> Bool Source # (>=) :: Img -> Img -> Bool Source # max :: Img -> Img -> Img Source # min :: Img -> Img -> Img Source #
ParseDot Img Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Img Source # parse :: Parse Img Source # parseUnqtList :: Parse [Img] Source # parseList :: Parse [Img] Source #
PrintDot Img Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Img -> DotCode Source # toDot :: Img -> DotCode Source # unqtListToDot :: [Img] -> DotCode Source # listToDot :: [Img] -> DotCode Source #

type Attributes = [Attribute] Source #

The various HTML-like label-specific attributes being used.

data Attribute Source #

Note that not all `Attribute` values are valid everywhere: see the comments for each one on where it is valid.

Constructors

Align Align | Valid for: `Table`, `Cell`, `Newline`.
BAlign Align | Valid for: `Cell`.
BGColor Color | Valid for: `Table` (including `tableFontAttrs`), `Cell`, `Font`.
Border Word8 | Valid for: `Table`, `Cell`. Default is `1`; `0` represents no border.
CellBorder Word8 | Valid for: `Table`. Default is `1`; `0` represents no border.
CellPadding Word8 | Valid for: `Table`, `Cell`. Default is `2`.
CellSpacing Word8 | Valid for: `Table`, `Cell`. Default is `2`; maximum is `127`.
Color Color | Valid for: `Table`, `Cell`.
ColSpan Word16 | Valid for: `Cell`. Default is `1`.
Columns CellFormat | Valid for: `Table`. Requires Graphviz >= 2.40.1
Face Text | Valid for: `tableFontAttrs`, `Font`.
FixedSize Bool | Valid for: `Table`, `Cell`. Default is ``False``.
GradientAngle Int | Valid for: `Table`, `Cell`. Default is `0`. Requires Graphviz >= 2.40.1
Height Word16 | Valid for: `Table`, `Cell`.
HRef Text | Valid for: `Table`, `Cell`.
ID Text | Valid for: `Table`, `Cell`. Requires Graphviz >= 2.29.0
PointSize Double | Valid for: `tableFontAttrs`, `Font`.
Port PortName | Valid for: `Table`, `Cell`.
Rows CellFormat | Valid for: `Table`. Requires Graphviz >= 2.40.1
RowSpan Word16 | Valid for: `Cell`.
Scale Scale | Valid for: `Img`.
Sides [Side] | Valid for: `Table`, `Cell`. Default is `[`LeftSide`, `TopSide`, `RightSide`, `BottomSide`]`. Requires Graphviz >= 2.40.1
Src FilePath | Valid for: `Img`.
Style Style | Valid for: `Table`, `Cell`. Requires Graphviz >= 2.40.1
Target Text | Valid for: `Table`, `Cell`.
Title Text | Valid for: `Table`, `Cell`. Has an alias of `TOOLTIP`.
VAlign VAlign | Valid for: `Table`, `Cell`.
Width Word16 | Valid for: `Table`, `Cell`.

#### Instances

Instances details

Read Attribute Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Attribute Source # readList :: ReadS [Attribute] Source # readPrec :: ReadPrec Attribute Source # readListPrec :: ReadPrec [Attribute] Source #
Show Attribute Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Attribute -> ShowS Source # show :: Attribute -> String Source # showList :: [Attribute] -> ShowS Source #
Eq Attribute Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Attribute -> Attribute -> Bool Source # (/=) :: Attribute -> Attribute -> Bool Source #
Ord Attribute Source # |

Instance details

Defined in Data.GraphViz.Attributes.HTML

Methods

compare :: Attribute -> Attribute -> Ordering Source #

(<) :: Attribute -> Attribute -> Bool Source #

(<=) :: Attribute -> Attribute -> Bool Source #

(>) :: Attribute -> Attribute -> Bool Source #

(>=) :: Attribute -> Attribute -> Bool Source #

max :: Attribute -> Attribute -> Attribute Source #

min :: Attribute -> Attribute -> Attribute Source #

ParseDot Attribute Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Attribute Source # parse :: Parse Attribute Source # parseUnqtList :: Parse [Attribute] Source # parseList :: Parse [Attribute] Source #
PrintDot Attribute Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Attribute -> DotCode Source # toDot :: Attribute -> DotCode Source # unqtListToDot :: [Attribute] -> DotCode Source # listToDot :: [Attribute] -> DotCode Source #

data Align Source #

Specifies horizontal placement. When an object is allocated more space than required, this value determines where the extra space is placed left and right of the object.

Constructors

HLeft |
HCenter | Default value.
HRight |
HText | `LabelCell` values only; aligns lines of text using the full cell width. The alignment of a line is determined by its (possibly implicit) associated `Newline` element.

#### Instances

Instances details

Bounded Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: Align Source # maxBound :: Align Source #
Enum Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods succ :: Align -> Align Source # pred :: Align -> Align Source # toEnum :: Int -> Align Source # fromEnum :: Align -> Int Source # enumFrom :: Align -> [Align] Source # enumFromThen :: Align -> Align -> [Align] Source # enumFromTo :: Align -> Align -> [Align] Source # enumFromThenTo :: Align -> Align -> Align -> [Align] Source #
Read Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Align Source # readList :: ReadS [Align] Source # readPrec :: ReadPrec Align Source # readListPrec :: ReadPrec [Align] Source #
Show Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Align -> ShowS Source # show :: Align -> String Source # showList :: [Align] -> ShowS Source #
Eq Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Align -> Align -> Bool Source # (/=) :: Align -> Align -> Bool Source #
Ord Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Align -> Align -> Ordering Source # (<) :: Align -> Align -> Bool Source # (<=) :: Align -> Align -> Bool Source # (>) :: Align -> Align -> Bool Source # (>=) :: Align -> Align -> Bool Source # max :: Align -> Align -> Align Source # min :: Align -> Align -> Align Source #
ParseDot Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Align Source # parse :: Parse Align Source # parseUnqtList :: Parse [Align] Source # parseList :: Parse [Align] Source #
PrintDot Align Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Align -> DotCode Source # toDot :: Align -> DotCode Source # unqtListToDot :: [Align] -> DotCode Source # listToDot :: [Align] -> DotCode Source #

data VAlign Source #

Specifies vertical placement. When an object is allocated more space than required, this value determines where the extra space is placed above and below the object.

Constructors

HTop |
HMiddle | Default value.
HBottom |

#### Instances

Instances details

Bounded VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: VAlign Source # maxBound :: VAlign Source #
Enum VAlign Source # |

Instance details

Defined in Data.GraphViz.Attributes.HTML

Methods

succ :: VAlign -> VAlign Source #

pred :: VAlign -> VAlign Source #

toEnum :: Int -> VAlign Source #

fromEnum :: VAlign -> Int Source #

enumFrom :: VAlign -> [VAlign] Source #

enumFromThen :: VAlign -> VAlign -> [VAlign] Source #

enumFromTo :: VAlign -> VAlign -> [VAlign] Source #

enumFromThenTo :: VAlign -> VAlign -> VAlign -> [VAlign] Source #

Read VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS VAlign Source # readList :: ReadS [VAlign] Source # readPrec :: ReadPrec VAlign Source # readListPrec :: ReadPrec [VAlign] Source #
Show VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> VAlign -> ShowS Source # show :: VAlign -> String Source # showList :: [VAlign] -> ShowS Source #
Eq VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: VAlign -> VAlign -> Bool Source # (/=) :: VAlign -> VAlign -> Bool Source #
Ord VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: VAlign -> VAlign -> Ordering Source # (<) :: VAlign -> VAlign -> Bool Source # (<=) :: VAlign -> VAlign -> Bool Source # (>) :: VAlign -> VAlign -> Bool Source # (>=) :: VAlign -> VAlign -> Bool Source # max :: VAlign -> VAlign -> VAlign Source # min :: VAlign -> VAlign -> VAlign Source #
ParseDot VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse VAlign Source # parse :: Parse VAlign Source # parseUnqtList :: Parse [VAlign] Source # parseList :: Parse [VAlign] Source #
PrintDot VAlign Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: VAlign -> DotCode Source # toDot :: VAlign -> DotCode Source # unqtListToDot :: [VAlign] -> DotCode Source # listToDot :: [VAlign] -> DotCode Source #

data CellFormat Source #

Constructors

RuleBetween |

#### Instances

Instances details

Bounded CellFormat Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: CellFormat Source # maxBound :: CellFormat Source #
Enum CellFormat Source # |

Instance details

Defined in Data.GraphViz.Attributes.HTML

Methods

succ :: CellFormat -> CellFormat Source #

pred :: CellFormat -> CellFormat Source #

toEnum :: Int -> CellFormat Source #

fromEnum :: CellFormat -> Int Source #

enumFrom :: CellFormat -> [CellFormat] Source #

enumFromThen :: CellFormat -> CellFormat -> [CellFormat] Source #

enumFromTo :: CellFormat -> CellFormat -> [CellFormat] Source #

enumFromThenTo :: CellFormat -> CellFormat -> CellFormat -> [CellFormat] Source #

Read CellFormat Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS CellFormat Source # readList :: ReadS [CellFormat] Source # readPrec :: ReadPrec CellFormat Source # readListPrec :: ReadPrec [CellFormat] Source #
Show CellFormat Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> CellFormat -> ShowS Source # show :: CellFormat -> String Source # showList :: [CellFormat] -> ShowS Source #
Eq CellFormat Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: CellFormat -> CellFormat -> Bool Source # (/=) :: CellFormat -> CellFormat -> Bool Source #
Ord CellFormat Source # |

Instance details

Defined in Data.GraphViz.Attributes.HTML

Methods

compare :: CellFormat -> CellFormat -> Ordering Source #

(<) :: CellFormat -> CellFormat -> Bool Source #

(<=) :: CellFormat -> CellFormat -> Bool Source #

(>) :: CellFormat -> CellFormat -> Bool Source #

(>=) :: CellFormat -> CellFormat -> Bool Source #

max :: CellFormat -> CellFormat -> CellFormat Source #

min :: CellFormat -> CellFormat -> CellFormat Source #

ParseDot CellFormat Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse CellFormat Source # parse :: Parse CellFormat Source # parseUnqtList :: Parse [CellFormat] Source # parseList :: Parse [CellFormat] Source #
PrintDot CellFormat Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: CellFormat -> DotCode Source # toDot :: CellFormat -> DotCode Source # unqtListToDot :: [CellFormat] -> DotCode Source # listToDot :: [CellFormat] -> DotCode Source #

data Scale Source #

Specifies how an image will use any extra space available in its cell. If undefined, the image inherits the value of the `ImageScale` attribute.

Constructors

NaturalSize | Default value.
ScaleUniformly |
ExpandWidth |
ExpandHeight |
ExpandBoth |

#### Instances

Instances details

Bounded Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: Scale Source # maxBound :: Scale Source #
Enum Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods succ :: Scale -> Scale Source # pred :: Scale -> Scale Source # toEnum :: Int -> Scale Source # fromEnum :: Scale -> Int Source # enumFrom :: Scale -> [Scale] Source # enumFromThen :: Scale -> Scale -> [Scale] Source # enumFromTo :: Scale -> Scale -> [Scale] Source # enumFromThenTo :: Scale -> Scale -> Scale -> [Scale] Source #
Read Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Scale Source # readList :: ReadS [Scale] Source # readPrec :: ReadPrec Scale Source # readListPrec :: ReadPrec [Scale] Source #
Show Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Scale -> ShowS Source # show :: Scale -> String Source # showList :: [Scale] -> ShowS Source #
Eq Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Scale -> Scale -> Bool Source # (/=) :: Scale -> Scale -> Bool Source #
Ord Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Scale -> Scale -> Ordering Source # (<) :: Scale -> Scale -> Bool Source # (<=) :: Scale -> Scale -> Bool Source # (>) :: Scale -> Scale -> Bool Source # (>=) :: Scale -> Scale -> Bool Source # max :: Scale -> Scale -> Scale Source # min :: Scale -> Scale -> Scale Source #
ParseDot Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Scale Source # parse :: Parse Scale Source # parseUnqtList :: Parse [Scale] Source # parseList :: Parse [Scale] Source #
PrintDot Scale Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Scale -> DotCode Source # toDot :: Scale -> DotCode Source # unqtListToDot :: [Scale] -> DotCode Source # listToDot :: [Scale] -> DotCode Source #

data Side Source #

Which sides of a border in a cell or table should be drawn, if a border is drawn.

Constructors

LeftSide |
RightSide |
TopSide |
BottomSide |

#### Instances

Instances details

Bounded Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: Side Source # maxBound :: Side Source #
Enum Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods succ :: Side -> Side Source # pred :: Side -> Side Source # toEnum :: Int -> Side Source # fromEnum :: Side -> Int Source # enumFrom :: Side -> [Side] Source # enumFromThen :: Side -> Side -> [Side] Source # enumFromTo :: Side -> Side -> [Side] Source # enumFromThenTo :: Side -> Side -> Side -> [Side] Source #
Read Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Side Source # readList :: ReadS [Side] Source # readPrec :: ReadPrec Side Source # readListPrec :: ReadPrec [Side] Source #
Show Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Side -> ShowS Source # show :: Side -> String Source # showList :: [Side] -> ShowS Source #
Eq Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Side -> Side -> Bool Source # (/=) :: Side -> Side -> Bool Source #
Ord Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Side -> Side -> Ordering Source # (<) :: Side -> Side -> Bool Source # (<=) :: Side -> Side -> Bool Source # (>) :: Side -> Side -> Bool Source # (>=) :: Side -> Side -> Bool Source # max :: Side -> Side -> Side Source # min :: Side -> Side -> Side Source #
ParseDot Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Side Source # parse :: Parse Side Source # parseUnqtList :: Parse [Side] Source # parseList :: Parse [Side] Source #
PrintDot Side Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Side -> DotCode Source # toDot :: Side -> DotCode Source # unqtListToDot :: [Side] -> DotCode Source # listToDot :: [Side] -> DotCode Source #

data Style Source #

Constructors

Rounded | Valid for `Table`
Radial | Valid for `Table`, `Cell`.

#### Instances

Instances details

Bounded Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods minBound :: Style Source # maxBound :: Style Source #
Enum Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods succ :: Style -> Style Source # pred :: Style -> Style Source # toEnum :: Int -> Style Source # fromEnum :: Style -> Int Source # enumFrom :: Style -> [Style] Source # enumFromThen :: Style -> Style -> [Style] Source # enumFromTo :: Style -> Style -> [Style] Source # enumFromThenTo :: Style -> Style -> Style -> [Style] Source #
Read Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods readsPrec :: Int -> ReadS Style Source # readList :: ReadS [Style] Source # readPrec :: ReadPrec Style Source # readListPrec :: ReadPrec [Style] Source #
Show Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods showsPrec :: Int -> Style -> ShowS Source # show :: Style -> String Source # showList :: [Style] -> ShowS Source #
Eq Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods (==) :: Style -> Style -> Bool Source # (/=) :: Style -> Style -> Bool Source #
Ord Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods compare :: Style -> Style -> Ordering Source # (<) :: Style -> Style -> Bool Source # (<=) :: Style -> Style -> Bool Source # (>) :: Style -> Style -> Bool Source # (>=) :: Style -> Style -> Bool Source # max :: Style -> Style -> Style Source # min :: Style -> Style -> Style Source #
ParseDot Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods parseUnqt :: Parse Style Source # parse :: Parse Style Source # parseUnqtList :: Parse [Style] Source # parseList :: Parse [Style] Source #
PrintDot Style Source # |
Instance details Defined in Data.GraphViz.Attributes.HTML Methods unqtDot :: Style -> DotCode Source # toDot :: Style -> DotCode Source # unqtListToDot :: [Style] -> DotCode Source # listToDot :: [Style] -> DotCode Source #