Render builtin types with type variables #9
Labels
enhancement
New feature or request
requires-backend-change
snooze-3
Issue is likely to be worked on, might become "on-deck" in the next couple of months
There's a very specific set of builtin types in Unison and we can render them more nicely than
builtin type
.For instance,
base.List
could be rendered astype List a
(or perhapsbuiltin type List a
). Showing type variables helps communicate how the builtins are constructed.The full list of builtins are here: https://github.com/unisonweb/unison/blob/trunk/parser-typechecker/src/Unison/Builtin.hs#L153
Of those, these are the ones with type variables:
type MVar a
type TVar a
type Ref {g} a
ability Scope s
type Request {g} r
type List a
We can hard code this rendering in the UI for now.
Note that builtins have special hashes: like
##Nat
for instance.The text was updated successfully, but these errors were encountered: