ghc icon indicating copy to clipboard operation
ghc copied to clipboard

Self quantification in data declarations

Open RafaelBocquet opened this issue 10 years ago • 2 comments

Currently, this declaration :

data A :: * where B :: forall (x :: A). A

results in a "AThing evaluated unexpectedly" ghc panic.

I think it should be accepted.

RafaelBocquet avatar Nov 05 '15 09:11 RafaelBocquet

Yes, it should be accepted. But arranging for it to be accepted is a little challenging (purely from an engineering point of view), and might not make it for 8.0. We'll get there eventually. :)

The panic will go away though.

goldfirere avatar Nov 05 '15 13:11 goldfirere

ghc now hangs when compiling this code.

RafaelBocquet avatar Dec 14 '15 20:12 RafaelBocquet