unison/unison-src/transcripts/fix4528.output.md

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