bitmaps- Bitmap library



This module is unstable; functions are not guaranteed to be the same or even to exist in future versions

It is intended primarily for use by this library itself.



tablespoon :: a -> Either String aSource

Hack to catch pureish asynchronous errors

This is only used as a workaround to the binary library's shortcoming of using asynchronous errors instead of pure error handling, and also zlib's same shortcoming.

This function is similar to the spoon package's teaspoon function, except that it can return more information when an exception is caught.

subStr :: StringCells s => Int -> Int -> s -> sSource

Return a substring

subStr index length returns length characters from the string starting at index, which starts at 0.

 subStr 1 2 "abcd" == "bc"