[GHC] #12987: Core lint error with levity polymorphism
GHC
ghc-devs at haskell.org
Thu Dec 15 21:56:28 UTC 2016
#12987: Core lint error with levity polymorphism
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
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: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by RyanGlScott):
I can reproduce this in GHC 8.0.2, but not in GHC HEAD:
{{{
$ inplace/bin/ghc-stage2 --interactive
GHCi, version 8.1.20161215: http://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/rgscott/.ghci
λ> import GHC.Types
λ> :set -XTypeInType -dcore-lint
λ> class NUM (a :: TYPE rep) where add :: a -> a -> a
λ> :t add
add :: NUM a => a -> a -> a
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12987#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list