links icon indicating copy to clipboard operation
links copied to clipboard

There is no way to define row aliases

Open slindley opened this issue 7 years ago • 2 comments

slindley avatar Jul 28 '16 17:07 slindley

More generally, for any kind it would be nice to be able to define (parameterized) aliases of things of that kind, uniformly. Something like this syntax:

typename Foo(a,b,c)::Kind = ...

where the RHS of ... would need to allow several different syntactic classes (which might in turn be tricky to parse).

We can currently already put kind specifiers on the type parameters but they are not handled in a hygienic way, and no kind inference is done (#491, #526, #301).

jamescheney avatar Apr 02 '19 11:04 jamescheney

Since #1141 we can define aliases for effect rows. This mechanism should be generalised along the lines outlined by @jamescheney above.

dhil avatar Jul 22 '22 11:07 dhil