[GHC] #11011: Add type-indexed type representations (`TypeRep a`)
GHC
ghc-devs at haskell.org
Wed Mar 16 23:04:17 UTC 2016
#11011: Add type-indexed type representations (`TypeRep a`)
-------------------------------------+-------------------------------------
Reporter: bjmprice | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version:
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2010
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
The Core Lint violation in `T11120` appears to be the result of `(->)`
overly constrained kind when used in prefix position, `* -> * -> *`,
{{{
Kind application error in type ‘(->) Char#’
Function kind = * -> * -> *
Arg kinds = [(Char#, TYPE 'WordRep)]
}}}
Where this type appears in a use of `mkTrApp`,
{{{#!hs
mkTrApp @* @* @((->) Char#) @CharHash ...
}}}
which was produced as evidence for the `Typeable` representation for,
{{{#!hs
data CharHash = CharHash Char#
}}}
I've opened #11714 to track the overly constrained kind of `(->)`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11011#comment:40>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list