Zora 1.1.16 → 1.1.17
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
- Zora.cabal +1/−1
- Zora/Graphing/DAGGraphing.hs +2/−2
Zora.cabal view
@@ -1,5 +1,5 @@ Name: Zora-Version: 1.1.16+Version: 1.1.17 Synopsis: Graphing library wrapper + assorted useful functions Description: A library of assorted useful functions for working with lists, doing mathematical operations and graphing custom data types. Category: Unclassified
Zora/Graphing/DAGGraphing.hs view
@@ -56,8 +56,8 @@ -- | Expands a node into its show_node and children. For example, -- -- > expand (Empty) = Nothing- -- > expand (Leaf x) = Just (show x, [])- -- > expand (Node x l r) = Just (show x, [("L child", l), ("R child", r)])+ -- > expand (Leaf x) = Just (Just $ show x, [])+ -- > expand (Node x l r) = Just (Just $ show x, [("L child", l), ("R child", r)]) expand :: g -> Maybe (Maybe String, [(Maybe String, g)]) -- | Returns whether a node is empty. Sometimes, when declaring algebraic data types, it is desirable to have an \"Empty\" show_node constructor. If your data type does not have an \"Empty\" show_node constructor, just always return @False@.