Skip to content

feat: Higher-Kinded Types prototype (parser + RFC)#63390

Open
SAY-5 wants to merge 1 commit intomicrosoft:mainfrom
SAY-5:feat/higher-kinded-types
Open

feat: Higher-Kinded Types prototype (parser + RFC)#63390
SAY-5 wants to merge 1 commit intomicrosoft:mainfrom
SAY-5:feat/higher-kinded-types

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented Apr 12, 2026

This is a prototype exploring parser support for higher-kinded type parameters (<F<_>> syntax), along with an RFC document laying out a phased approach to full HKT support.

Parser changes recognize type parameters that are themselves generic. The RFC covers syntax design, kind inference, and how checker integration would work in a follow-up.

Included test cases cover the patterns people typically want HKTs for: Functor, Monad, Bifunctor, natural transformations.

This is intentionally scoped to parser + design — checker integration is a separate, much larger effort.

Phase 1 of Higher-Kinded Types (microsoft#1213):
- Parser: recognize <F<_>> in type parameter positions
- Types: isHigherKinded/hktParameters on TypeParameterDeclaration
- RFC: design doc with phased plan
- Tests: Functor, Monad, Bifunctor syntax cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

1 participant