[GHC] #13423: Exception to I/O hack in demand analyzer too broad

GHC ghc-devs at haskell.org
Tue Mar 14 15:23:12 UTC 2017


#13423: Exception to I/O hack in demand analyzer too broad
-------------------------------------+-------------------------------------
        Reporter:  dfeuer            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Is this really wrong in this case though? In a single-threaded context
 there is no observable difference between writing an `IORef` and then
 diverging, and diverging immediately; and in a multi-threaded context the
 ordering of `writeIORef` with respect to anything else is not guaranteed.

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


More information about the ghc-tickets mailing list