Rework annotations

This commit is contained in:
2022-06-12 13:38:23 +01:00
parent 8b4b6de0c0
commit 2ccb26b289
16 changed files with 161 additions and 154 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
{-# LANGUAGE TupleSections #-}
module Dodge.UseAll where
import Dodge.Data
import Dodge.Tree.Compose.Data
import Data.Tree
import Control.Lens
@@ -15,8 +16,11 @@ toOnward s rm
toOnward' :: Room -> Maybe Room
toOnward' = fmap snd . toOnward ""
rToOnward :: Monad m => String -> Tree Room -> m (Room -> Maybe ([String],Room), Tree Room)
rToOnward s = return . (toOnward s ,)
rToOnward :: Monad m => String -> Tree Room -> m (MetaTree Room)
rToOnward s t = return $ MTree s (tToBTree t) []
tToBTree :: Tree Room -> MetaTree Room
tToBTree (Node r ts) = BTree (_rmName r) r $ map tToBTree ts
toClusterLabel :: Int -> String -> Room -> Maybe ([String],Room)
toClusterLabel i s rm