aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/exception.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/control/exception.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/library/lux/control/exception.lux b/stdlib/source/library/lux/control/exception.lux
index f311fdb25..834f8afe8 100644
--- a/stdlib/source/library/lux/control/exception.lux
+++ b/stdlib/source/library/lux/control/exception.lux
@@ -1,6 +1,6 @@
(.require
[library
- [lux (.except except with)
+ [lux (.except except with when)
[abstract
[monad (.only do)]]
[control
@@ -38,7 +38,7 @@
(All (_ e a)
(-> (Exception e) (-> Text a) (Try a)
(Try a)))
- (case try
+ (.when try
{//.#Success output}
{//.#Success output}
@@ -54,7 +54,7 @@
(def .public (otherwise else try)
(All (_ a)
(-> (-> Text a) (Try a) a))
- (case try
+ (.when try
{//.#Success output}
output
@@ -127,7 +127,7 @@
(|> message
(text.replaced text.new_line on_new_line)
(all text#composite padding header header_separator)))))]
- (case entries
+ (.when entries
{.#End}
""
@@ -167,9 +167,9 @@
(def .public (with exception message computation)
(All (_ e a) (-> (Exception e) e (Try a) (Try a)))
- (case computation
+ (.when computation
{//.#Failure error}
- {//.#Failure (case error
+ {//.#Failure (.when error
""
(..error exception message)