Unwrapping a from IO (a)
问题 I've been learning Haksell the last 2 weeks and decided to try challenges at places such as Hackerrank. This has required learning IO. I have read many answers on stackExchange and the general gist is you don't unwrap IO a.. you just manipulate that data inside the IO function. That being the case what is the point of all the pure functions, if I'm not allowed to send data from main out to them? Here is some code that reads how many test cases, then for each test case reads N ordered pairs.