
#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 andrewthad): Another use-case I just stumbled across is the coercion of unboxed tuple types: {{{ coerceTuple :: (# a, (# b, c #) #) -> (# a, b, c #) coerceTuple = coerce }}} This does not currently work, but it would be nice if it did. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13595#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler