Unfortunately that usually means that you need to let the IO
type
filter
down from the top level to all fns which need to print
something.
Then
you can emit a message perhaps in the same function which
reads
the files.
Or is
it perhaps a buffering problem?
J
Hello All,
I wrote a small haskell program that amongst other things parses some
files to manipulate them. During runtime I want the program
to output information about the status every time another file is parsed.
That doesn't work, the output appears much later, mostly not until end of
program. But I need these outputs at that specific time, so what can I do
to manage it?
Thanks
Nicole