aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/experiment/tool
diff options
context:
space:
mode:
authorEduardo Julian2022-08-11 16:50:42 -0400
committerEduardo Julian2022-08-11 16:50:42 -0400
commite5625dd840a8b8adc76987f649da254335d3d93a (patch)
treefb672669383525d90d462edf8c141f98bc953894 /stdlib/source/experiment/tool
parent065e8a4d8122d4616b570496915d2c0e2c78cd6b (diff)
Improved exception-definition macro.
Diffstat (limited to 'stdlib/source/experiment/tool')
-rw-r--r--stdlib/source/experiment/tool/interpreter.lux5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/experiment/tool/interpreter.lux b/stdlib/source/experiment/tool/interpreter.lux
index cea7bd833..55064903b 100644
--- a/stdlib/source/experiment/tool/interpreter.lux
+++ b/stdlib/source/experiment/tool/interpreter.lux
@@ -4,7 +4,7 @@
[control
[monad (.only Monad do)]
["[0]" try (.only Try)]
- ["ex" exception (.only exception)]]
+ ["ex" exception (.only Exception)]]
[data
["[0]" text (.use "[1]#[0]" equivalence)
["%" \\format (.only format)]]]
@@ -29,7 +29,8 @@
["[0]" console (.only Console)]]]]
["[0]" /type])
-(exception .public (error [message Text])
+(exception.def .public (error message)
+ (Exception Text)
message)
(def .public module "<INTERPRETER>")