(x `div` y)*y + (x `mod` y) == xWARNING: This function is partial (because it throws when 0 is passed as the divisor) for all the integer types in base.
Main> :t modify ((+1) :: Int -> Int) modify (...) :: (MonadState Int a) => a ()This says that modify (+1) acts over any Monad that is a member of the MonadState class, with an Int state.