News for hackers. Stuff that matters.
Re:Mental models around Ok-Wrapping by lmm on Friday April 10, 2020 @11:46AM (#22834206)
This is completely wrong. Result is either success or failure, so an R<E1, R<E2, A>> can never contain both E1 and E2 at the same time.

Validation types work the way you describe and require a monoidal "error" side, but famously do not form monads (though they are applicative functors).

Re:Mental models around Ok-Wrapping by pinopinopino on Friday April 10, 2020 @11:58AM (#22834324)
A true that, long day and have been working with shapeless in scala, where type level and value level mixes up :)