[GHC] #16263: GHC accepts illegal constraint in kind
GHC
ghc-devs at haskell.org
Thu Jan 31 18:31:42 UTC 2019
#16263: GHC accepts illegal constraint in kind
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.6.3
Resolution: | Keywords: TypeInType,
| newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):
* keywords: TypeInType => TypeInType, newcomer
* milestone: => 8.8.1
Comment:
Luckily, commit 2257a86daa72db382eb927df12a718669d5491f8 (`Taming the Kind
Inference Monster`) has already fixed this in GHC HEAD:
{{{
$ ~/Software/ghc5/inplace/bin/ghc-stage2 --interactive -XPolyKinds
-XDataKinds
GHCi, version 8.7.20190128: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/rgscott/.ghci
λ> import Data.Kind
λ> data Q :: Eq a => Type
<interactive>:2:1: error: Illegal constraint in a kind: Eq a => *
}}}
We just need a regression test.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16263#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list