#1586: trace output ordering  in HEAD incorrectly
--------------------------------+-------------------------------------------
  Reporter:  [EMAIL PROTECTED]  |          Owner:         
      Type:  bug                |         Status:  new    
  Priority:  normal             |      Milestone:         
 Component:  Compiler           |        Version:  6.7    
  Severity:  normal             |       Keywords:         
Difficulty:  Unknown            |             Os:  Unknown
  Testcase:                     |   Architecture:  Unknown
--------------------------------+-------------------------------------------
I don't have a test case, but it appears that the Debug.Trace.trace output
 is ordered incorrectly. By incorrectly, I mean that it does not follow
 evaluation order. I suspect it will come up in every non-trivial use of
 it. In GHC-6.6.1 the output order was correct (modulo that the size of
 output was not equal during runs (but there is another report for that
 already)).

 In a program I have
 {{{
 runFoo $ do
   () <- trace "hi" (return ())
   () <- trace "there" (return ())
   return ()
 }}}

 prints:
 {{{
 there
 hi
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1586>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to