Data.GraphViz.Attributes.HTML

graphviz-2999.20.0.3: 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 #

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

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

type Text = [TextItem] #

Represents a textual component of an HTML-like label. It is assumed that a `Label` 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 #

Textual items in HTML-like labels.

Constructors

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

Instances

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

data Format #

Constructors

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

Instances

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

data Table #

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

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

data Row #

A row in a `Label`. 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

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

data Cell #

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

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

newtype Img #

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

Constructors

Img Attributes |

Instances

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

type Attributes = [Attribute] #

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

data Attribute #

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

Instances

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

data Align #

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

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

data VAlign #

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

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

data CellFormat #

Constructors

RuleBetween |

Instances

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

data Scale #

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

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

data Side #

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

Constructors

LeftSide |
RightSide |
TopSide |
BottomSide |

Instances

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

data Style #

Constructors

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

Instances

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