bripkens / health-check-adapter

Connect health check endpoints to Slack
Apache License 2.0
3 stars 3 forks source link

Use Try instead of Either #11

Closed britter closed 8 years ago

britter commented 8 years ago

Either has two main problems:

  1. Using Right for the good case is just a convention and not encoded in the type system
  2. it is not monadic

It's better to use Try for modeling operations that may fail. Replace Either in in Configuration with Try.

bripkens commented 8 years ago

Understood, thanks! :)