unison/unison-src/transcripts/fix2353.output.md

29 lines
703 B
Markdown
Raw Permalink Normal View History

``` unison
2021-09-03 02:55:27 +03:00
use builtin Scope
unique ability Async t g where async : {g} Nat
2021-09-03 02:55:27 +03:00
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'
```
``` ucm
2021-09-03 02:55:27 +03:00
Loading changes detected in scratch.u.
2021-09-03 02:55:27 +03:00
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`:
ability Async t g
ability Exception
2021-09-03 02:55:27 +03:00
pure.run : a -> (∀ t. '{Async t g} a) ->{g, Exception} a
```