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

GHC ghc-devs at haskell.org
Fri Feb 13 19:34:57 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):

 Anyways I should add that this behavior of `trace` is very surprising and
 should definitely be fixed. But if we're going to work around the
 underlying bug with a hack (which seems reasonable to me) it should be a
 hack that is targeted to the actual issue. For example, I imagine that
 some use of magic functions like `lazy` would probably get the job done.

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


More information about the ghc-tickets mailing list