aboutsummaryrefslogtreecommitdiff
path: root/examples/27-effect-handler-nested
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-01-11 11:44:45 +0000
committerMichael Williamson <mike@zwobble.org>2025-01-12 14:32:55 +0000
commit0d2ac550c25550f9588ec0a1b5885169260f67d6 (patch)
tree68d8b36a98a6d58314bf6e14aba6d8b629805d59 /examples/27-effect-handler-nested
parent7b3405d766195f50bcb69f1c17f07b45fa0516eb (diff)
Support local project dependencies
Diffstat (limited to 'examples/27-effect-handler-nested')
-rw-r--r--examples/27-effect-handler-nested/shed-examples.json59
-rw-r--r--examples/27-effect-handler-nested/shed.json58
-rw-r--r--examples/27-effect-handler-nested/src/Example.shed42
3 files changed, 0 insertions, 59 deletions
diff --git a/examples/27-effect-handler-nested/shed-examples.json5 b/examples/27-effect-handler-nested/shed-examples.json5
deleted file mode 100644
index 13ea0b50..00000000
--- a/examples/27-effect-handler-nested/shed-examples.json5
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- examples: [
- {
- project: ".",
- bin: "example",
- expectedOutput: "a outer\na inner\na inner\nb\na inner\na inner\na outer",
- },
- ],
-}
diff --git a/examples/27-effect-handler-nested/shed.json5 b/examples/27-effect-handler-nested/shed.json5
deleted file mode 100644
index e642a813..00000000
--- a/examples/27-effect-handler-nested/shed.json5
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- bins: [
- {
- name: "example",
- mainNamespace: "Example",
- },
- ],
-}
diff --git a/examples/27-effect-handler-nested/src/Example.shed b/examples/27-effect-handler-nested/src/Example.shed
deleted file mode 100644
index 2a8e4781..00000000
--- a/examples/27-effect-handler-nested/src/Example.shed
+++ /dev/null
@@ -1,42 +0,0 @@
-effect A {
- fun a() -> Unit;
-}
-
-effect B {
- fun b() -> Unit;
-}
-
-pub fun main() ! Io -> Unit {
- try {
- A.a!();
-
- try {
- A.a!();
-
- try {
- A.a!();
- B.b!();
- A.a!();
- } handle B {
- fun b() {
- print!("b\n");
- resume;
- }
- }
-
- A.a!();
- } handle A {
- fun a() {
- print!("a inner\n");
- resume;
- }
- }
-
- A.a!();
- } handle A {
- fun a() {
- print!("a outer\n");
- resume;
- }
- }
-}