Commit b7b40af6 by Zachary Snow

ensure collector results are evaluated

parent 1f05aa45
......@@ -120,7 +120,7 @@ unmonad traverser mapper = runIdentity . traverser (return . mapper)
collectify :: Monad m => (MapperM m a -> MapperM m b) -> CollectorM m a -> CollectorM m b
collectify traverser collector =
traverser mapper >=> \_ -> return ()
where mapper x = collector x >> return x
where mapper x = collector x >>= \() -> return x
traverseDescriptionsM :: Monad m => MapperM m Description -> MapperM m AST
traverseDescriptionsM = mapM
......
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