#9291: Don't reconstruct sum types if the type subtly changes -------------------------------------+------------------------------------- Reporter: schyler | Owner: nomeata Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2871 Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata):
Looking at the tests, I do not see Either x y <-> Maybe y coercions. Are these supposed to be done?
Are you referring to treating a `Just x` directly `Right x`, i.e. using similarly looking constructors at a different type? That is not included here, and it is not clear whether we actually want it done. If you think we do, please open a new ticket for it. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9291#comment:47> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler