4 ms·
If you really want your program's output to be a pure function of its input you can use the "interact" function in Haskell. I would recommend that the author tr
by resoluteteeth 5y ago
If you really want your program's output to be a pure function of its input you can use the "interact" function in Haskell. I would recommend that the author try this and see the limitations, since it might help him start to understand why Haskell uses the IO monad.