try package:effectful-core

Lifted try.
Similar to catchError, but returns an Either result which is a Right if no error was thrown and a Left otherwise.
Similar to catchError, but returns an Either result which is a Right if no error was thrown and a Left otherwise.
A variant of try that fully forces evaluation of the result value to find all impure exceptions.
try specialized to catch IOException.
Catch an exception only if it satisfies a specific predicate.
Lifted tryJust.
try specialized to catch all exceptions considered to be synchronous.
trySynctryIf @SomeException isSyncException
See the check exception type section for more information.
A variant of trySync that fully forces evaluation of the result value to find all impure exceptions.
Similar to catchError, but returns an Either result which is a Right if no error was thrown and a Left otherwise.