
#7873: A poly-kinded newtype existential crisis
----------------------------------------+-----------------------------------
Reporter: ekmett | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: fixed | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC rejects valid program | Difficulty: Unknown
Testcase: ghci/scripts/T7873 | Blockedby:
Blocking: | Related:
----------------------------------------+-----------------------------------
Comment(by simonpj):
Oh, I also improve the rather cryptic "existential" error message
{{{
T7863.hs:5:17:
A newtype constructor cannot have existential type variables
Magic :: forall (k :: BOX).
(forall (p :: k -> *) (a :: k). p a -> Int) -> Magic
In the definition of data constructor ‛Magic’
In the newtype declaration for ‛Magic’
}}}
with this commit
{{{
commit bee30a6586ae157d8a5569f17f0e4cd14ab71653
Author: Simon Peyton Jones