Algorithms on GHC parse trees
