unison/unison-src/transcripts/fix1696.md

23 lines
419 B
Markdown
Raw Permalink Normal View History

```ucm:hide
scratch/main> builtins.merge
```
```unison:error
structural ability Ask where ask : Nat
ability Zoot where
zoot : Nat
Ask.provide : '{Zoot} Nat -> '{Ask} r -> r
Ask.provide answer asker =
h = cases
{r} -> r
{Ask.ask -> resume} -> handle resume !answer with h
handle !asker with h
dialog = Ask.provide 'zoot '("Awesome number: " ++ Nat.toText Ask.ask ++ "!")
> dialog
```