4 ms·
Haskell uses monads to encompass IO actions because IO is so much more than the stdout and stdin. The stderr, file operations, accessing raw memory, network con
by loa_in_ 5y ago
Haskell uses monads to encompass IO actions because IO is so much more than the stdout and stdin. The stderr, file operations, accessing raw memory, network connections and all sorts of global states are the domain of the IO monad.