Re: [GHC] #13595: Should ‘coerce’ be levity polymorphic?
GHC
ghc-devs at haskell.org
Sat Apr 22 19:23:17 UTC 2017
#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 goldfire):
I believe it is. There's no other implementation for `coerce` than no-op.
What might not be compiled away is a call like `map coerce`, but we have
RULES for that. Regardless, levity polymorphism does not complicate that
story.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13595#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list