Hacker News new | ask | show | jobs
by lalaithion 2068 days ago
The State monad desugars to pure code, but the IO monad doesn't. If you use IORefs or MVars, then you do actual, real mutability by changing the value at a location.