More tidying
authorNeil Smith <NeilNjae@users.noreply.github.com>
Thu, 8 Dec 2022 20:23:06 +0000 (22:23 +0200)
committerNeil Smith <NeilNjae@users.noreply.github.com>
Thu, 8 Dec 2022 20:23:06 +0000 (22:23 +0200)
advent08/Main.hs

index e822fc278098418b6809c3b9fc9e1978a452de1d..6bbf06a34fc5f46d42160ad926da0c0c0c8b8f80 100644 (file)
@@ -14,14 +14,8 @@ main =
   do  dataFileName <- getDataFileName
       text <- readFile dataFileName
       let forest = fmap (fmap readTree) $ lines text
-      -- print forest
-      -- print $ setVisibilityOrient forest
-      -- print $ setVisibilityForest forest
-      -- print $ countVisible $ setVisibilityForest forest
       print $ part1 forest
       print $ part2 forest
-      -- print $ part1 sizedTree
-      -- print $ part2 sizedTree
 
 part1, part2 :: Forest -> Int
 part1 = countVisible . setVisibilityForest