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