Commit before further changes to MetaTrees

This commit is contained in:
2022-06-13 09:49:43 +01:00
parent dbba78ef05
commit 768b86d393
6 changed files with 38 additions and 54 deletions
+5
View File
@@ -11,6 +11,11 @@ data MetaTree a
= MTree {_mtLabel :: String , _mtTree :: MetaTree a , _mtBranches :: [MetaBranch a] }
| BTree {_btLabel :: String , _btValue :: a , _btBranches :: [MetaTree a] }
mRootLabel :: MetaTree a -> String
mRootLabel mt = case mt of
MTree {} -> _mtLabel mt
BTree {} -> _btLabel mt
--type CompTree a = Tree (Tree a)
type LabTree a = (a -> Maybe ([String],a),Tree a)
type LabCompTree a = Tree (LabTree a)