forked from GitHub/gf-core
Added module file (hacky) URLs to nodes.
This commit is contained in:
@@ -62,7 +62,7 @@ prNode n = concat (map (++";\n") stmts)
|
|||||||
GrAbstract -> "solid"
|
GrAbstract -> "solid"
|
||||||
GrConcrete -> "dashed"
|
GrConcrete -> "dashed"
|
||||||
GrResource -> "dotted"
|
GrResource -> "dotted"
|
||||||
attrs = [("style",style)]
|
attrs = [("style",style),("URL", l++".gf")] -- FIXME: might be in a different directory
|
||||||
|
|
||||||
|
|
||||||
prExtend :: String -> String -> String
|
prExtend :: String -> String -> String
|
||||||
@@ -78,4 +78,4 @@ prEdge :: String -> String -> [(String,String)] -> String
|
|||||||
prEdge f t as = f ++ " -> " ++ t ++ " [" ++ prAttributes as ++ "]"
|
prEdge f t as = f ++ " -> " ++ t ++ " [" ++ prAttributes as ++ "]"
|
||||||
|
|
||||||
prAttributes :: [(String,String)] -> String
|
prAttributes :: [(String,String)] -> String
|
||||||
prAttributes = concat . intersperse ", " . map (\ (n,v) -> n ++ " = " ++ v)
|
prAttributes = concat . intersperse ", " . map (\ (n,v) -> n ++ " = " ++ show v)
|
||||||
|
|||||||
Reference in New Issue
Block a user