Using Monoid instance for RetryPolicy rather than explicitly checking max attempts