2011/7/22 Александр <[email protected]> > How can i make Monad type class instance for this tree? And can i make it > on not? >
You'll apply 'f' to every node in the tree. You'll need some sensible mechanism to merge the resulting trees. You might have an easier time for merging a slightly different tree type: Tree a = Leaf a | Node (Tree a) (Tree a)
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
