aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/debug.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/debug.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/lux/debug.lux b/stdlib/source/lux/debug.lux
index 6a4c208fa..db18eb37e 100644
--- a/stdlib/source/lux/debug.lux
+++ b/stdlib/source/lux/debug.lux
@@ -7,12 +7,12 @@
[monad (#+ do)]]
[control
["." function]
+ ["." try (#+ Try)]
["." exception (#+ exception:)]
["<>" parser
["<.>" type (#+ Parser)]]
pipe]
[data
- ["." error (#+ Error)]
["." text
["%" format (#+ format)]]
[format
@@ -277,10 +277,10 @@
))))
(def: #export (represent type value)
- (-> Type Any (Error Text))
+ (-> Type Any (Try Text))
(case (<type>.run type ..representation)
- (#error.Success representation)
- (#error.Success (representation value))
+ (#try.Success representation)
+ (#try.Success (representation value))
- (#error.Failure error)
+ (#try.Failure _)
(exception.throw cannot-represent-value type)))