unison/unison-src/transcripts/alias-term.output.md
Greg Pfeil 0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00

636 B

alias.term makes a new name for a term.

project/main> alias.term lib.builtins.bug foo

  Done.

project/main> ls

  1. foo  (a -> b)
  2. lib/ (643 terms, 92 types)

It won't create a conflicted name, though.

project/main> alias.term lib.builtins.todo foo

  ⚠️
  
  A term by that name already exists.

project/main> ls

  1. foo  (a -> b)
  2. lib/ (643 terms, 92 types)

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

project/main> debug.alias.term.force lib.builtins.todo foo

  Done.

project/main> ls

  1. foo  (a -> b)
  2. foo  (a -> b)
  3. lib/ (643 terms, 92 types)