I'm new to Haskell. In the Monad docs, there is an example use for the void function:
>>> void (Left 8675309)
Left 8675309
>>> void (Right 8675309)
Right ()
I'm having a tough time figuring out why this is the case.
I see that void is defined as: void x = () <$ x and (<$) = fmap . const but I cannot figure out why there is a difference between Left and Right.
Any hints?