IOモナドと副作用
https://haskell.jp/blog/posts/2020/io-monad-and-sideeffect.html

こういう入門的なページにもきちんと書いてあるのにね。