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
More Related Contents:
- `String’ is applied to too many type arguments
- How do I define Lisp’s apply in Haskell?
- Operating on a return from a Maybe that contains “Just”
- Is there a Haskell idiom for updating a nested data structure?
- What’s so bad about Lazy I/O?
- Positive integer type
- Explicitly import instances
- How to compare two functions for equivalence, as in (λx.2*x) == (λx.x+x)?
- Why do 3 and x (which was assigned 3) have different inferred types in Haskell? [duplicate]
- How do I use fix, and how does it work?
- List of different types?
- What is Levity polymorphism
- How to infer the type of an expression manually
- Haskell: I/O and Returning From a Function
- Ordering of parameters to make use of currying
- No instance for (Fractional Int) arising from a use of `/’
- Type Constraints in Data Declaration Haskell
- Prefix form of unary operator in Haskell
- How can I generate different random values in Haskell?
- Zipper Comonads, Generically
- Can you overload + in haskell?
- Non-Trivial Lazy Evaluation
- Is there a way to see the list of functions in a module, in GHCI?
- Haskell GHC: what is the time complexity of a pattern match with N constructors?
- Creating unique labels in Haskell
- What’s the status of multicore programming in Haskell?
- Tools for analyzing performance of a Haskell program
- Functional lenses
- How to reuse a type variable in an inner type declaration
- How does Haskell printf work?