We know that the do block is just syntactic sugar. But then how does it figure out which monadic context it is in? Assume we don't use <- operator anywhere in the do block.
We know that the do block is just syntactic sugar. But then how does it figure out which monadic context it is in? Assume we don't use <- operator anywhere in the do block.