summaryrefslogtreecommitdiff
path: root/lib/std/result.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/result.myr')
-rw-r--r--lib/std/result.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/std/result.myr b/lib/std/result.myr
new file mode 100644
index 0000000..58ef45b
--- /dev/null
+++ b/lib/std/result.myr
@@ -0,0 +1,9 @@
+use "die.use"
+
+pkg std =
+ type result(@a, @b) = union
+ `Ok @a
+ `Fail @b
+ ;;
+;;
+