Why doesn’t Haskell sequence these IO actions properly?

This looks more like a buffering than a sequencing problem. What platform are you on? Have you tried forcing unbuffered output?

hSetBuffering stdout NoBuffering -- from System.IO

Leave a Comment