aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/debug.lux
diff options
context:
space:
mode:
authorEduardo Julian2019-07-02 23:36:02 -0400
committerEduardo Julian2019-07-02 23:36:02 -0400
commit91c0619657bcf2ac520e7dd2912188f66bbe2157 (patch)
treef26675f263eb5f0285c1674b0777a7369248fe07 /stdlib/source/lux/debug.lux
parent4f191540f831a7bba0e262b1a6b598f99fb9b35c (diff)
Re-name "lux/data/error" to "lux/control/try".
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)))