[GHC] #11052: Standalone derived Typeable instance for promoted lists is not found
GHC
ghc-devs at haskell.org
Mon Nov 2 15:01:55 UTC 2015
#11052: Standalone derived Typeable instance for promoted lists is not found
-------------------------------------+-------------------------------------
Reporter: liamoc | Owner:
Type: bug | Status: new
Priority: high | Milestone: 8.0.1
Component: Compiler (Type | Version: 7.10.2
checker) |
Resolution: | Keywords:
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 goldfire):
* priority: normal => high
* milestone: => 8.0.1
Comment:
(Written concurrently with comment:2)
This is actually expected behavior, but perhaps shouldn't be.
The problem is that, at your call sites of `typeRep`, GHC doesn't know
what ''kinds'' you want to specialize `'[]` and `'(:)` to. We can't have
type representations of poly-kinded things (for various good reasons that
would take a bit of academic research to sort out), so compilation fails.
But we sure can improve the error message.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11052#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list