« Previous | Next » 

Revision 5badb3e7

ID5badb3e7b92b8e177d9cf506e9c43be3caf0a8f7
Parent 710f5ae2
Child 4b49a72b

Added by Klaus Aehlig over 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 <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences