Attempt <~> Result is the IsoFunctor, or NaturalTransformation Isomorphism, between Attempt and its underlying Result.
Attempt <~> Result is the IsoFunctor, or NaturalTransformation Isomorphism, between Attempt and its underlying Result.
We use this to remove all the boilerplate from the typeclass instance declarations, and just use Result's definitions.
Puts the given error in an Attempt
Puts the given error in an Attempt
Puts the given strict value in Attempt.
Puts the given strict value in Attempt. To run an operation safely, use safe()
Runs the given operation in try/catch.