Safe Haskell | None |
---|---|
Language | Haskell98 |
Implementation of Dot
language writer.
- bracket1 :: (a, a) -> [a] -> [a]
- bracket :: ([a], [a]) -> [a] -> [a]
- string_pp :: String -> String
- label_pp :: String -> String
- type Attr = (String, String)
- attr_pp :: Attr -> String
- attr_pp_maybe :: Attr -> Maybe String
- attr_list_pp :: [Attr] -> String
- attr_set_pp :: String -> [Attr] -> String
- int_pp :: Int -> String
- size_pp :: (Double, Double) -> String
- bool_pp :: Bool -> String
- std_style :: Dot_Options -> [String]
- dotGraph :: Dot_Options -> Graph -> String
- view_with :: Dot_Options -> String -> IO ()
- data IP
- right_variant :: ([a] -> [b]) -> [a] -> [b]
- limit_precision_p :: Bool -> Int -> Sample -> String
- limit_precision_e :: Int -> Sample -> String
- limit_precision :: Bool -> Int -> Sample -> String
- limit_precision_o :: Dot_Options -> Sample -> String
- ip_record :: Dot_Options -> IP -> String
- escape_html :: String -> String
- ip_html :: Dot_Options -> IP -> String
- record :: Dot_Options -> String -> String -> ([IP], [IP]) -> String
- table :: Dot_Options -> String -> String -> ([IP], [IP]) -> String
- dot_edge :: Dot_Options -> Graph -> Edge -> String
- input :: Dot_Options -> Graph -> Node -> FromPort -> Int -> IP
- dot_node_u :: Dot_Options -> Graph -> Node -> String
- dot_node_k_color :: Node -> Attr
- dot_node_k_rec :: Dot_Options -> Node -> String
- dot_node_k_html :: Dot_Options -> Node -> String
- dot_node_k :: Dot_Options -> Node -> String
- get_viewer :: Dot_Options -> IO String
Documentation
attr_list_pp :: [Attr] -> String Source
Attribute lists are in square brackets and comma seperated.
attr_set_pp :: String -> [Attr] -> String Source
Attribute sets are named and semi-colon terminated.
std_style :: Dot_Options -> [String] Source
Basic attribute sets given Dot_Options
.
dotGraph :: Dot_Options -> Graph -> String Source
Generate dot representation of the provided unit generator graph.
view_with :: Dot_Options -> String -> IO () Source
View dot
graph according to Dot_Options
.
Input port.
right_variant :: ([a] -> [b]) -> [a] -> [b] Source
limit_precision_p :: Bool -> Int -> Sample -> String Source
Limited precision PP for Sample
, no scientific notation.
map (limit_precision_p True 2) [1,1.25,1.12345,0,0.05,pi*1e8,1e9]
limit_precision_e :: Int -> Sample -> String Source
Limited precision PP for Sample
, with scientific notation.
map (limit_precision_e 3) [1,1.25,0.05,pi*1e8,1e9]
limit_precision :: Bool -> Int -> Sample -> String Source
Variant selecting scientific notation more cautiously than haskells default PP.
map (limit_precision True 3) [1,1.25,0.05,0,pi*1e8,1e9]
limit_precision_o :: Dot_Options -> Sample -> String Source
Variant of limit_precision
reading parameters from Dot_Options
.
ip_record :: Dot_Options -> IP -> String Source
IP in record form.
escape_html :: String -> String Source
Very rudimentary HTML escaping.
dot_node_u :: Dot_Options -> Graph -> Node -> String Source
dot_node_k_color :: Node -> Attr Source
dot_node_k_rec :: Dot_Options -> Node -> String Source
dot_node_k_html :: Dot_Options -> Node -> String Source
dot_node_k :: Dot_Options -> Node -> String Source
get_viewer :: Dot_Options -> IO String Source
Considering output_format
read either the environment variable
DOTVIEWER
or SVGVIEWER
, the default values are dot_viewer
and
svg_viewer
.