catmaybes package:hedgehog

Takes a tree of Maybes and returns a tree of all the Just values. If the root of the tree is Nothing then Nothing is returned.