Revision 5badb3e7
ID | 5badb3e7b92b8e177d9cf506e9c43be3caf0a8f7 |
Parent | 710f5ae2 |
Child | 4b49a72b |
Add utility function tryAndLogIOError
This function allows to use 'IO a' objects in a safe
way, using the 'try' function; the outcome is reported
as a 'Result'. IOErrors are logged and the result is
'Bad', while in the case of no errors, a result-yielding
function is applied to the value.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
Files
- added
- modified
- copied
- renamed
- deleted