
#13595: Should ‘coerce’ be levity polymorphic? -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: | LevityPolymorphism Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13592 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): Source level `coerce` takes a boxed coercion and unboxes it before it is a no-op. In most cases, the compiler will optimize this unboxing away, but I am actually not sure what guarantees we have here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13595#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler