mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
17 lines
390 B
Markdown
17 lines
390 B
Markdown
```ucm:hide
|
|
scratch/main> builtins.merge
|
|
```
|
|
|
|
```unison
|
|
use builtin Scope
|
|
unique ability Async t g where async : {g} Nat
|
|
unique ability Exception where raise : Nat -> x
|
|
|
|
pure.run : a -> (forall t . '{Async t g} a) ->{Exception, g} a
|
|
pure.run a0 a =
|
|
a' : forall s . '{Scope s, Exception, g} a
|
|
a' = 'a0 -- typechecks
|
|
-- make sure this builtin can still be referenced
|
|
Scope.run a'
|
|
```
|