unison/unison-src/transcripts/upgrade-suffixifies-properly.output.md
Mitchell Rosen 3d0f9bd34e make upgrade use update's complicated ppe creation logic, which finishes
off suffixifying definitions by hash when we can in upgrade
2024-01-12 12:25:58 -05:00

1.1 KiB

lib.old.foo = 25
lib.new.foo = +30
a.x.x.x.x = 100
b.x.x.x.x = 100
c.y.y.y.y = lib.old.foo + 10
d.y.y.y.y = lib.old.foo + 10
bar = a.x.x.x.x + c.y.y.y.y

  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`:
    
      a.x.x.x.x   : Nat
      b.x.x.x.x   : Nat
      bar         : Nat
      c.y.y.y.y   : Nat
      d.y.y.y.y   : Nat
      lib.new.foo : Int
      lib.old.foo : Nat

myproject/main> add

  ⍟ I've added these definitions:
  
    a.x.x.x.x   : Nat
    b.x.x.x.x   : Nat
    bar         : Nat
    c.y.y.y.y   : Nat
    d.y.y.y.y   : Nat
    lib.new.foo : Int
    lib.old.foo : Nat

myproject/main> upgrade old new

  I couldn't automatically upgrade old to new. However, I've
  added the definitions that need attention to the top of
  scratch.u.

bar : Nat
bar =
  use Nat +
  x + c.y.y.y.y

d.y.y.y.y : Nat
d.y.y.y.y =
  use Nat +
  foo + 10

c.y.y.y.y : Nat
c.y.y.y.y =
  use Nat +
  foo + 10