[GHC] #9795: Debug.Trace.trace is too strict

GHC ghc-devs at haskell.org
Fri Feb 13 21:15:14 UTC 2015


#9795: Debug.Trace.trace is too strict
-------------------------------------+-------------------------------------
        Reporter:  jcpetruzza        |                   Owner:
            Type:  bug               |                  Status:  patch
        Priority:  normal            |               Milestone:  7.12.1
       Component:  libraries/base    |                 Version:  7.8.3
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D654
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 That's a separate issue to the one the original bug report was about,
 though. The surprising behavior is that `trace a b` can evaluate `b`
 before printing `a`, and if evaluation of `b` enters an infinite loop, `a`
 will never be printed at all.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9795#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list