Similar Items: Natural Transformations as Rewrite Rules and Monad Composition