unison/unison-src/transcripts/ability-order-doesnt-affect-hash.md
2024-06-25 11:11:07 -07:00

288 B

The order of a set of abilities is normalized before hashing.

unique ability Foo where
  foo : ()

unique ability Bar where
  bar : ()

term1 : () ->{Foo, Bar} ()
term1 _ = ()

term2 : () ->{Bar, Foo} ()
term2 _ = ()
scratch/main> add
scratch/main> names term1