Features
- Adds
Maybe
monad - Adds immutability and
__slots__
to all monads - Adds methods to work with failures
- Adds
safe
decorator to convert exceptions toEither
monad - Adds
is_successful()
function to detect if your result is a success - Adds
failure()
method to unwrap values from failed monads
Bugfixes
- Changes the type of
.bind
method forSuccess
monad - Changes how equality works, so now
Failure(1) != Success(1)
- Changes how new instances created on unused methods
Misc
- Improves docs