Here's the next practical question.
I want to download some big files from http server(database updates). This operation should block user UI, preventing him from inputting data. SO the problem is to show user progress bar, which will tell him how much is it still to wait.
In python, request objects open file-like object. I have read it by chucks and reported to GUI by callback functions.
How to implement the same in haskell? how to get current downloaded size and report it?