Skip to content

Commit

Permalink
Update transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Feb 12, 2025
1 parent 31b15f7 commit 1146eea
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
6 changes: 4 additions & 2 deletions unison-src/transcripts-manual/rewrites.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,11 @@ scratch/main> rewrite woot1to2
-- | Rewrote using:
-- | Modified definition(s): wootEx
ability Woot1 where woot1 : '{Woot1} Nat
ability Woot1 where
woot1 : '{Woot1} Nat
ability Woot2 where woot2 : '{Woot2} Nat
ability Woot2 where
woot2 : '{Woot2} Nat
woot1to2 x =
@rewrite
Expand Down
9 changes: 6 additions & 3 deletions unison-src/transcripts-round-trip/main.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ scratch/a1> edit.new 1-1000
```

````` unison :added-by-ucm scratch.u
structural ability Abort where abort : {Abort} a
structural ability Abort where
abort : {Abort} a
structural ability Ask a where ask : {Ask a} a
structural ability Ask a where
ask : {Ask a} a
structural type Fix_2337
= Fix_2337 Boolean Boolean
structural ability Fix_2392 where zonk : {Fix_2392} Nat
structural ability Fix_2392 where
zonk : {Fix_2392} Nat
structural type Fix_2392a x y
= Oog Nat Nat (Nat, Nat)
Expand Down
2 changes: 1 addition & 1 deletion unison-src/transcripts/idempotent/doc1.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scratch/main> view lib.builtins.Doc
| Source Link
| Signature Term
| Evaluate Term
| Join [lib.builtins.Doc]
| Join [Doc]
```

You can create these `Doc` values with ordinary code, or you can use the special syntax. A value of structural type `Doc` can be created via syntax like:
Expand Down
3 changes: 2 additions & 1 deletion unison-src/transcripts/idempotent/formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ ability Thing where
Ask.doc = {{ Ability with single constructor }}
structural ability Ask a where ask : {Ask a} a
structural ability Ask a where
ask : {Ask a} a
-- Regression test for: https://github.com/unisonweb/unison/issues/4666
provide : a -> '{Ask a} r -> r
Expand Down
5 changes: 2 additions & 3 deletions unison-src/transcripts/idempotent/top-level-exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ FYI, here are the `Exception` and `Failure` types:
scratch/main> view Exception Failure
structural ability builtin.Exception where
raise : Failure ->{builtin.Exception} x
raise : Failure ->{Exception} x
type builtin.io2.Failure
= Failure Type Text Any
type builtin.io2.Failure = Failure Type Text Any
```

Here's a sample program just to verify that the typechecker allows `run` to throw exceptions:
Expand Down
3 changes: 2 additions & 1 deletion unison-src/transcripts/merge.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,8 @@ my.cool.thing : Nat
my.cool.thing = 17
-- scratch/bob
ability my.cool where thing : Nat ->{cool} Nat
ability my.cool where
thing : Nat ->{cool} Nat
```

Expand Down

0 comments on commit 1146eea

Please sign in to comment.