unison/unison-src/transcripts/alias-type.md
2024-06-26 15:33:15 -04:00

451 B

alias.type makes a new name for a type.

project/main> builtins.mergeio lib.builtins
project/main> alias.type lib.builtins.Nat Foo
project/main> ls

It won't create a conflicted name, though.

project/main> alias.type lib.builtins.Int Foo
project/main> ls

You can use debug.alias.type.force for that.

project/main> debug.alias.type.force lib.builtins.Int Foo
project/main> ls