News for hackers. Stuff that matters.
Re:Why the world needs Haskell by chongli on Wednesday July 10, 2013 @11:56PM (#6024403)
Finding out at what part of a monadic computation the return of a function put a None when there should have been a Some is much more tricky.

This is where Either comes in handy. Either allows you to attach extra information to the error condition (such as a String). This lets you have the same properties of Maybe but with more information when you need to disambiguate.

There are no comments on this comment yet.