2 ms·
Do blocks don't allow side effects, they are just syntactic sugar that makes composing monadic operations easier. Haskell does have escape hatches with unsafeP
by the_duke 8y ago
Do blocks don't allow side effects, they are just syntactic sugar that makes composing monadic operations easier.
Haskell does have escape hatches with unsafePerformIO and IORef/STRef
- TuringTest 8y agoYeah, but monadic composing is what make I/O and other side effects stylistic and understandable.