
To be clear, I don't think (although could be wrong) this program should compile; afterall, the type of gunbox requires that we represent a levity
#13929: GHC panic with levity polymorphism
-------------------------------------+-------------------------------------
Reporter: vagarenko | Owner: (none)
Type: bug | Status: new
Priority: high | Milestone: 8.2.2
Component: Compiler | Version: 8.2.1-rc2
Resolution: | Keywords: TypeInType,
| LevityPolymorphism
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by vagarenko):
Replying to [comment:10 Ben Gamari
I think levity polymorphism paper says you can't have functions with levity-polymorphic parameters, levity-polymorphic results are OK.
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13929#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler