HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulegraphviz-2999.20.2.0Haskell2010

Data.GraphViz.Printing

This module defines simple helper functions for use with Text.PrettyPrint. It also re-exports all the pretty-printing combinators from that module.

Note that the PrintDot instances for Bool, etc. match those specified for use with Graphviz.

You should only be using this module if you are writing custom node types for use with Data.GraphViz.Types. For actual printing of code, use printDotGraph (which produces a Text value).

The Dot language specification specifies that any identifier is in one of four forms:

  • Any string of alphabetic ([a-zA-Z\200-\377]) characters, underscores (_) or digits ([0-9]), not beginning with a digit;

  • a number [-]?(.[0-9]+ | [0-9]+(.[0-9]*)? );

  • any double-quoted string ("...") possibly containing escaped quotes (\");

  • an HTML string (<...>).

(Note that the first restriction is referring to a byte-by-byte comparison using octal values; when using UTF-8 this corresponds to all characters c where ord c >= 128.)

Due to these restrictions, you should only use text when you are sure that the Text in question is static and quotes are definitely needed/unneeded; it is better to use the Text instance for PrintDot. For more information, see the specification page: http://graphviz.org/doc/info/lang.html

  • 3 types
  • 1 class
  • 85 values
valuetext :: Applicative m => Text -> m Doc
#

The document (text s) contains the literal string s. The string shouldn't contain any newline ('n') characters. If the string contains newline characters, the function string should be used.

valuegroup :: Functor m => m Doc -> m Doc
#

The group combinator is used to specify alternative layouts. The document (group x) undoes all line breaks in document x. The resulting line is added to the current line if that fits the page. Otherwise, the document x is rendered without any changes.

valueparens :: Functor m => m Doc -> m Doc
#

Document (parens x) encloses document x in parenthesis, "(" and ")".

valueempty :: Applicative m => m Doc
#

The empty document is, indeed, empty. Although empty has no content, it does have a 'height' of 1 and behaves exactly like (text "") (and is therefore not a unit of <$>).

valueindent :: Functor m => Int -> m Doc -> m Doc
#

The document (indent i x) indents document x with i spaces.

test = indent 4 (fillSep (map text
        (words "the indent combinator indents these words !")))

Which lays out with a page width of 20 as:

      the indent
      combinator
      indents these
      words !
  
valuelist :: Functor m => m [Doc] -> m Doc
#

The document (list xs) comma separates the documents xs and encloses them in square brackets. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All comma separators are put in front of the elements.

valuechar :: Applicative m => Char -> m Doc
#

The document (char c) contains the literal character c. The character shouldn't be a newline ('n'), the function line should be used for line breaks.

valuesep :: Functor m => m [Doc] -> m Doc
#

The document (sep xs) concatenates all documents xs either horizontally with (<+>), if it fits the page, or vertically with (<$>).

sep xs = group (vsep xs)
datadata Doc
#

The abstract data type Doc represents pretty documents.

Doc is an instance of the Show class. (show doc) pretty prints document doc with a page width of 100 characters and a ribbon width of 40 characters.

show (text "hello" <$> text "world")

Which would return the string "hello\nworld", i.e.

  hello
  world
  
Instances9Show, IsString, Semigroup, Monoid, Pretty, …
  • Show DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Show DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.Text
  • IsString DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • IsString DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.Text
  • Semigroup DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Semigroup DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.Text

    In particular, note that the document (x <> y) concatenates document x and document y. It is an associative operation having empty as a left and right unit. (infixr 6)

  • Monoid DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Monoid DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.Text
  • Pretty DocDefined in wl-pprint-text-1.2.0.2 · Text.PrettyPrint.Leijen.Text
valuebeside :: Applicative m => m Doc -> m Doc -> m Doc
#

The document (x beside y) concatenates document x and document y. It is an associative operation having empty as a left and right unit. (infixr 6)

valuedquotes :: Functor m => m Doc -> m Doc
#

Document (dquotes x) encloses document x with double quotes '"'.

valuehcat :: Functor m => m [Doc] -> m Doc
#

The document (hcat xs) concatenates all documents xs horizontally with (<>).

valuepunctuate :: Applicative m => m Doc -> m [Doc] -> m [Doc]
#

(punctuate p xs) concatenates all documents in xs with document p except for the last document.

someText = map text ["words","in","a","tuple"]
test = parens (align (cat (punctuate comma someText)))

This is laid out on a page width of 20 as:

  (words,in,a,tuple)
  

But when the page width is 15, it is laid out as:

  (words,
   in,
   a,
   tuple)
  

(If you want put the commas in front of their elements instead of at the end, you should use tupled or, in general, encloseSep.)

value(<+>) :: Applicative m => m Doc -> m Doc -> m Doc
#

The document (x <+> y) concatenates document x and y with a space in between. (infixr 6)

value(<//>) :: Applicative m => m Doc -> m Doc -> m Doc
#

The document (x <//> y) concatenates document x and y with a softbreak in between. This effectively puts x and y either right next to each other or underneath each other. (infixr 5)

value(</>) :: Applicative m => m Doc -> m Doc -> m Doc
#

The document (x </> y) concatenates document x and y with a softline in between. This effectively puts x and y either next to each other (with a space in between) or underneath each other. (infixr 5)

valuealign :: Functor m => m Doc -> m Doc
#

The document (align x) renders document x with the nesting level set to the current column. It is used for example to implement hang.

As an example, we will put a document right above another one, regardless of the current nesting level:

x $$ y = align (x <$> y)
test = text "hi" <+> (text "nice" $$ text "world")

which will be laid out as:

  hi nice
     world
  
valueangles :: Functor m => m Doc -> m Doc
#

Document (angles x) encloses document x in angles, "<" and ">".

valuebraces :: Functor m => m Doc -> m Doc
#

Document (braces x) encloses document x in braces, "{" and "}".

valuebrackets :: Functor m => m Doc -> m Doc
#

Document (brackets x) encloses document x in square brackets, "[" and "]".

valuecat :: Functor m => m [Doc] -> m Doc
#

The document (cat xs) concatenates all documents xs either horizontally with (<>), if it fits the page, or vertically with (<$$>).

cat xs = group (vcat xs)
valuecolumn :: Functor m => m (Int -> Doc) -> m Doc
#

Specifies how to create the document based upon which column it is in.

valuedisplayB :: SimpleDoc -> Builder
#

(displayB simpleDoc) takes the output simpleDoc from a rendering function and transforms it to a Builder type (for further manipulation before converting to a lazy Text).

valueenclose :: Applicative m => m Doc -> m Doc -> m Doc -> m Doc
#

The document (enclose l r x) encloses document x between documents l and r using beside.

enclose l r x = l `beside` x `beside` r
valueencloseSep :: Applicative m => m Doc -> m Doc -> m Doc -> m [Doc] -> m Doc
#

The document (encloseSep l r sep xs) concatenates the documents xs separated by sep and encloses the resulting document by l and r. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All separators are put in front of the elements. For example, the combinator list can be defined with encloseSep:

list xs = encloseSep lbracket rbracket comma xs
test = text "list" <+> (list (map int [10,200,3000]))

Which is laid out with a page width of 20 as:

  list [10,200,3000]
  

But when the page width is 15, it is laid out as:

  list [10
       ,200
       ,3000]
  
valuefill :: Functor m => Int -> m Doc -> m Doc
#

The document (fill i x) renders document x. It then appends spaces until the width is equal to i. If the width of x is already larger, nothing is appended. This combinator is quite useful in practice to output a list of bindings. The following example demonstrates this.

types = [("empty","Doc")
         ,("nest","Int -> Doc -> Doc")
         ,("linebreak","Doc")]

ptype (name,tp)
= fill 6 (text name) <+> text "::" <+> text tp

test = text "let" <+> align (vcat (map ptype types))

Which is laid out as:

  let empty  :: Doc
      nest   :: Int -> Doc -> Doc
      linebreak :: Doc
  
valuefillBreak :: Functor m => Int -> m Doc -> m Doc
#

The document (fillBreak i x) first renders document x. It then appends spaces until the width is equal to i. If the width of x is already larger than i, the nesting level is increased by i and a line is appended. When we redefine ptype in the previous example to use fillBreak, we get a useful variation of the previous output:

ptype (name,tp)
= fillBreak 6 (text name) <+> text "::" <+> text tp

The output will now be:

  let empty  :: Doc
      nest   :: Int -> Doc -> Doc
      linebreak
             :: Doc
  
valuefillCat :: Functor m => m [Doc] -> m Doc
#

The document (fillCat xs) concatenates documents xs horizontally with (<>) as long as its fits the page, then inserts a linebreak and continues doing that for all documents in xs.

fillCat xs = foldr (<//>) empty xs
valuefillSep :: Functor m => m [Doc] -> m Doc
#

The document (fillSep xs) concatenates documents xs horizontally with (<+>) as long as its fits the page, then inserts a line and continues doing that for all documents in xs.

fillSep xs = foldr (</>) empty xs
valuehang :: Functor m => Int -> m Doc -> m Doc
#

The hang combinator implements hanging indentation. The document (hang i x) renders document x with a nesting level set to the current column plus i. The following example uses hanging indentation for some text:

test = hang 4 (fillSep (map text
        (words "the hang combinator indents these words !")))

Which lays out on a page with a width of 20 characters as:

  the hang combinator
      indents these
      words !
  

The hang combinator is implemented as:

hang i x = align (nest i x)
valuehsep :: Functor m => m [Doc] -> m Doc
#

The document (hsep xs) concatenates all documents xs horizontally with (<+>).

valueline :: Applicative m => m Doc
#

The line document advances to the next line and indents to the current nesting level. Document line behaves like (text " ") if the line break is undone by group or if rendered with renderOneLine.

valuelinebreak :: Applicative m => m Doc
#

The linebreak document advances to the next line and indents to the current nesting level. Document linebreak behaves like empty if the line break is undone by group.

valuenest :: Functor m => Int -> m Doc -> m Doc
#

The document (nest i x) renders document x with the current indentation level increased by i (See also hang, align and indent).

nest 2 (text "hello" <$> text "world") <$> text "!"

outputs as:

  hello
    world
  !
  
valuenesting :: Functor m => m (Int -> Doc) -> m Doc
#

Specifies how to nest the document based upon which column it is being nested in.

valuesemiBraces :: Functor m => m [Doc] -> m Doc
#

The document (semiBraces xs) separates the documents xs with semi colons and encloses them in braces. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All semi colons are put in front of the elements.

valuespace :: Applicative m => m Doc
#

The document space contains a single space, " ".

x <+> y = x `beside` space `beside` y
valuesquotes :: Functor m => m Doc -> m Doc
#

Document (squotes x) encloses document x with single quotes "'".

valuetupled :: Functor m => m [Doc] -> m Doc
#

The document (tupled xs) comma separates the documents xs and encloses them in parenthesis. The documents are rendered horizontally if that fits the page. Otherwise they are aligned vertically. All comma separators are put in front of the elements.

valuevcat :: Functor m => m [Doc] -> m Doc
#

The document (vcat xs) concatenates all documents xs vertically with (<$$>). If a group undoes the line breaks inserted by vcat, all documents are directly concatenated.

valuevsep :: Functor m => m [Doc] -> m Doc
#

The document (vsep xs) concatenates all documents xs vertically with (<$>). If a group undoes the line breaks inserted by vsep, all documents are separated with a space.

someText = map text (words ("text to lay out"))

test = text "some" <+> vsep someText

This is laid out as:

  some text
  to
  lay
  out
  

The align combinator can be used to align the documents under their first element

test = text "some" <+> align (vsep someText)

Which is printed as:

  some text
       to
       lay
       out
  
valueprettyM :: (Pretty a, Applicative m) => a -> m Doc
#

A monadic version of pretty; this is to allow you to use the Pretty class without having to create extra instances. Alternatively, you may wish to make a variant of Pretty using the actual Monad to be used.

newtypenewtype DotCodeM a
#

A type alias to indicate what is being produced.

Instances9Monad, Functor, Show, IsString, Applicative, Semigroup, …
  • Monad DotCodeMDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Functor DotCodeMDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Show DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • IsString DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Applicative DotCodeMDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Semigroup DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • Monoid DotCodeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • GraphvizStateM DotCodeMDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • MonadState GraphvizState DotCodeMDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
classclass PrintDot a where
#

A class used to correctly print parts of the Graphviz Dot language. Minimal implementation is unqtDot.

Methods

  • unqtDot :: a -> DotCode

    The unquoted representation, for use when composing values to produce a larger printing value.

  • toDot :: a -> DotCode

    The actual quoted representation; this should be quoted if it contains characters not permitted a plain ID String, a number or it is not an HTML string. Defaults to unqtDot.

  • unqtListToDot :: [a] -> DotCode

    The correct way of representing a list of this value when printed; not all Dot values require this to be implemented. Defaults to Haskell-like list representation.

  • listToDot :: [a] -> DotCode

    The quoted form of unqtListToDot; defaults to wrapping double quotes around the result of unqtListToDot (since the default implementation has characters that must be quoted).

Instances102PrintDot, …
  • PrintDot IntegerDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot VersionDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing

    Ignores versionTags and assumes 'not . null . versionBranch' (usually you want 'length . versionBranch == 2').

  • PrintDot Word16Defined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot Word32Defined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot Word64Defined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot Word8Defined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot BoolDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot CharDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot DoubleDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot IntDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot ArrowFillDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Arrows
  • PrintDot ArrowModifierDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Arrows
  • PrintDot ArrowShapeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Arrows
  • PrintDot ArrowSideDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Arrows
  • PrintDot ArrowTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Arrows
  • PrintDot BrewerNameDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot BrewerSchemeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot ColorSchemeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot ColorDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Colors
  • PrintDot WeightedColorDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Colors
  • PrintDot SVGColorDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Colors.SVG
  • PrintDot X11ColorDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Colors.X11
  • PrintDot AttributeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Complete
  • PrintDot AlignDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot AttributeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot CellDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot CellFormatDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot FormatDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot ImgDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot LabelDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot RowDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot ScaleDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot SideDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot StyleDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot TableDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot TextItemDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot VAlignDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.HTML
  • PrintDot CompassPointDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Internal
  • PrintDot PortNameDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Internal
  • PrintDot PortPosDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Internal
  • PrintDot ClusterModeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot DEConstraintsDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot DPointDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot DirTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot EdgeTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot FocusTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot GraphSizeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot JustificationDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LabelDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LabelSchemeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LayerIDDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LayerListDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LayerListSepDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LayerRangeElemDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot LayerSepDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot ModeTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot ModelDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot NodeSizeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot NormalizedDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot NumberDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot OrderDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot OutputModeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot OverlapDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot PackDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot PackModeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot PageDirDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot PathsDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot PointDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot PosDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot QuadTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot RankDirDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot RankTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot RatiosDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot RecordFieldDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot RectDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot RootDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot STStyleDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot SVGFontNamesDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot ScaleTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot ShapeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot SmoothTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot SplineDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot StartTypeDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot StyleItemDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot StyleNameDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot VerticalPlacementDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot ViewPortDefined in graphviz-2999.20.2.0 · Data.GraphViz.Attributes.Values
  • PrintDot GraphvizCommandDefined in graphviz-2999.20.2.0 · Data.GraphViz.Commands.Available
  • PrintDot GlobalAttributesDefined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Internal.Common
  • PrintDot GraphIDDefined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Internal.Common
  • PrintDot TextDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot TextDefined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot a => PrintDot [a]Defined in graphviz-2999.20.2.0 · Data.GraphViz.Printing
  • PrintDot n => PrintDot (DotGraph n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Canonical
  • PrintDot n => PrintDot (DotStatements n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Canonical
  • PrintDot n => PrintDot (DotSubGraph n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Canonical
  • PrintDot n => PrintDot (DotGraph n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Generalised
  • PrintDot n => PrintDot (DotStatement n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Generalised
  • PrintDot n => PrintDot (DotSubGraph n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Generalised
  • PrintDot n => PrintDot (DotGraph n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Graph

    Uses the PrintDot instance for canonical DotGraphs.

  • PrintDot n => PrintDot (DotEdge n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Internal.Common
  • PrintDot n => PrintDot (DotNode n)Defined in graphviz-2999.20.2.0 · Data.GraphViz.Types.Internal.Common
valueunqtText :: Text -> DotCode
#

For use with OverloadedStrings to avoid ambiguous type variable errors.

valuedotText :: Text -> DotCode
#

For use with OverloadedStrings to avoid ambiguous type variable errors.

valueprintIt :: PrintDot a => a -> Text
#

Convert to DotCode; note that this has no indentation, as we can only have one of indentation and (possibly) infinite line lengths.