Commit 973dba50 authored by Kai Zhang's avatar Kai Zhang

fix a bug

parent 287c8e77
...@@ -67,6 +67,7 @@ test-suite tests ...@@ -67,6 +67,7 @@ test-suite tests
main-is: test.hs main-is: test.hs
other-modules: other-modules:
Test.Basic Test.Basic
Test.Structure
Test.Utils Test.Utils
default-language: Haskell2010 default-language: Haskell2010
......
...@@ -104,7 +104,7 @@ genXMLTree gr = root [] [gexf] ...@@ -104,7 +104,7 @@ genXMLTree gr = root [] [gexf]
a = show $ alphaChannel $ _edgeColour at a = show $ alphaChannel $ _edgeColour at
{-# INLINE genXMLTree #-} {-# INLINE genXMLTree #-}
writeGEXF :: FilePath -> LGraph U NodeAttr EdgeAttr -> IO () writeGEXF :: Graph d => FilePath -> LGraph d NodeAttr EdgeAttr -> IO ()
writeGEXF fl gr = runX (genXMLTree gr >>> writeDocument config fl) >> return () writeGEXF fl gr = runX (genXMLTree gr >>> writeDocument config fl) >> return ()
where where
config = [withIndent yes] config = [withIndent yes]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment