
#9380: ghc generates seemingly incorrect code -------------------------------------+------------------------------------- Reporter: qnikst | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Incorrect | Blocked By: result at runtime | Related Tickets: Test Case: gadt/T9380 | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): I think HEAD is fine here. The call `view YA` gets type `Y (Any X)`, and that's a very reasonable type for it. I don't see a difficulty here. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9380#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler