graphviz-2999.1.0.2: GraphViz bindings for Haskell.



This module defines simple helper functions for use with Text.ParserCombinators.Poly.Lazy.

Note that the Parseable instances for Bool, etc. match those specified for use with GraphViz (e.g. non-zero integers are equivalent to True).

You should not be using this module; rather, it is here for informative/documentative reasons. If you want to parse a Data.GraphViz.Types.DotGraph, you should use Data.GraphViz.Types.parseDotGraph rather than its Parseable instance.



type Parse a = Parser Char aSource

A ReadS-like type alias.

parseFieldDef :: Parseable a => a -> String -> Parse aSource

For Bool-like data structures where the presence of the field name without a value implies a default value.

commaSep' :: Parse a -> Parse b -> Parse (a, b)Source