mod package:termonad

integer modulus, satisfying
(x `div` y)*y + (x `mod` y) == x
WARNING: This function is partial (because it throws when 0 is passed as the divisor) for all the integer types in base.
A slight variation on modifyMVar_ that allows a value to be returned (b) in addition to the modified value of the MVar.
An exception-safe wrapper for modifying the contents of an MVar. Like withMVar, modifyMVar will replace the original contents of the MVar if an exception is raised during the operation. This function is only atomic if there are no other producers for this MVar. In other words, it cannot guarantee that, by the time modifyMVar_ gets the chance to write to the MVar, the value of the MVar has not been altered by a write operation from another thread.
Modify a FontSize by adding some value.
>>> modFontSize 1 (FontSizePoints 13)
FontSizePoints 14

>>> modFontSize 1 (FontSizeUnits 9.0)
FontSizeUnits 10.0
You can reduce the font size by passing a negative value.
>>> modFontSize (-2) (FontSizePoints 13)
FontSizePoints 11
If you try to create a font size less than 1, then the old font size will be used.
>>> modFontSize (-10) (FontSizePoints 5)
FontSizePoints 5

>>> modFontSize (-1) (FontSizeUnits 1.0)
FontSizeUnits 1.0
Catch-all for unknown values
An enumerated type which can be used to indicate the cursor blink mode for the terminal.
Cursor does not blink.
Cursor blinks.
Follow GTK+ settings for cursor blinking.
How to handle cursor blink.
simultaneous div and mod WARNING: This function is partial (because it throws when 0 is passed as the divisor) for all the integer types in base.