{-# RULES "map/map" forall f g xs. map f (map g xs) = map (f.g) xs #-}
- Use the debug flag
-ddump-simpl-stats
to see what rules fired. - Use
-ddump-rule-firings
to show individual rule firing. - Use
-ddump-rule-rewrite
to show the code before and after rewrite.