[ghc-steering-committee] Mind the gap
Chris Dornan
chris at chrisdornan.com
Wed Jul 6 12:00:34 UTC 2022
Richard are you satisfied that my example program is invalid under PolyKinds?
> On 6 Jul 2022, at 12:51, Richard Eisenberg <lists at richarde.dev> wrote:
>
>
>
>> On Jul 6, 2022, at 4:35 AM, Simon Peyton Jones <simon.peytonjones at gmail.com <mailto:simon.peytonjones at gmail.com>> wrote:
>>
>> I sort of wonder: if we have (Typeable t) should that not give us (Typeable k) where (t :: k)? That would require us to have a function typeRepKind :: TypeRep (a::k) -> TypeRep k, and I don't know how hard that is to get.
>
> We have that function. It's called typeRepKind. What we need for this example is a superclass constraint:
>
> class Typeable k => Typeable (a :: k)
>
> which would probably require UndecidableSuperClasses, but otherwise might just work.
>
> Richard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-steering-committee/attachments/20220706/b28883cd/attachment.html>
More information about the ghc-steering-committee
mailing list