mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-19 14:29:27 +03:00
506 B
506 B
structural type Foo = MkFoo Nat
main : () -> Foo
main _ = MkFoo 5
Loading changes detected in scratch.u.
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
structural type Foo
main : 'Foo
foo/main> add
⍟ I've added these definitions:
structural type Foo
main : 'Foo
foo/main> run main
MkFoo 5