3 ms·You can also use the State monad, instead of IORef.by eru 2y agoYou can also use the State monad, instead of IORef.kqr 2y agoNot while printfing. That is what takes a MonadIO m => StateT s m () transformer, or at least a stack with a Writer in it.eru 2y agoYes, that's true.