How to get normal value from IO action in Haskell
You can’t, because that would violate referential transparency. IO in Haskell is made this way exactly to distinguish between actions whose result and effects may vary depending on the interaction with the environment/user and pure functions whose results are not going to change when you call them with the same input parameters. In order to … Read more