[GHC] #15832: returnIO/bindIO destroys runtime explicit stack information in some cases
GHC
ghc-devs at haskell.org
Tue Oct 30 06:10:02 UTC 2018
#15832: returnIO/bindIO destroys runtime explicit stack information in some cases
-------------------------------------+-------------------------------------
Reporter: infinity0 | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by infinity0):
Some more examples:
Good:
{{{#!hs
data X = X Int deriving (Eq, Show)
main :: IO ()
main = do
return undefined
print $ X (error "XXX")
}}}
Bad:
{{{#!hs
data X = X Int deriving (Eq, Show)
main :: IO ()
main = do
_ <- return undefined
print $ X (error "XXX")
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15832#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list