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 a
- subStr :: StringCells s => Int -> Int -> s -> s
- padByte :: Word8
Documentation
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.