Hacker News new | past | comments | ask | show | jobs | submit login

I don't think there's any documentation on Haskell's Either monad that doesn't explain that Right=Good even if it's only by convention. But its functions also has right affinity, so Right and Left cannot have equal weights. You have to decide why this result is in the right/default slot over the other one.



But Either is also a Bifunctor so you CAN do to the Left what you do the the Right as well as unpacking the value from both sides.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: