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

GHC ghc-devs at haskell.org
Tue Mar 14 17:56:27 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 dfeuer):

 Replying to [comment:1 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.

 That's not true. Someone could write

 {{{#!hs
 fish n ref next `catch` \(e :: E) -> readIORef ref >>= ...
 }}}

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


More information about the ghc-tickets mailing list