Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
throwaway487549
· 8y ago · 0 comments
This isomorphism has no meaning. It is also isomorphic to logical OR, if you wish. Shall we wrap OR into a Monad?
Comments
[–]
kreetx
8y ago
I think you're overthinking it. The isomorphism simply exists. And you don't wrap things into a monad, you just write an instance for it -- it has no effect on the data type itself, it simply allows to use the data type in monadic contexts.
[–]
AnaniasAnanas
8y ago
I think you mean of Either. Either is isomorphic to logical OR in type theory.