« Previous | Next » 

Revision 5badb3e7

Parent 710f5ae2
Child 4b49a72b

Added by Klaus Aehlig almost 10 years ago

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 <>
Reviewed-by: Michele Tartara <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences