unison/unison-src/transcripts/update-type-with-dependent-term.md
2024-06-25 11:11:07 -07:00

269 B

scratch/main> builtins.merge lib.builtin
unique type Foo = Bar Nat

incrFoo : Foo -> Foo
incrFoo = cases Bar n -> Bar (n+1)
scratch/main> add
unique type Foo = Bar Nat Nat
scratch/main> update