summaryrefslogtreecommitdiff
path: root/Dot.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Dot.hs')
-rw-r--r--Dot.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Dot.hs b/Dot.hs
index 592b21f69..deba10201 100644
--- a/Dot.hs
+++ b/Dot.hs
@@ -20,10 +20,7 @@ graphNode nodeid desc = label desc $ quote nodeid
{- an edge between two nodes -}
graphEdge :: String -> String -> Maybe String -> String
-graphEdge fromid toid desc = indent $
- case desc of
- Nothing -> edge
- Just d -> label d edge
+graphEdge fromid toid desc = indent $ maybe edge (\d -> label d edge) desc
where
edge = quote fromid ++ " -> " ++ quote toid