aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/scriptum.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/program/scriptum.lux')
-rw-r--r--stdlib/source/program/scriptum.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/program/scriptum.lux b/stdlib/source/program/scriptum.lux
index 569371900..3775fd006 100644
--- a/stdlib/source/program/scriptum.lux
+++ b/stdlib/source/program/scriptum.lux
@@ -4,6 +4,7 @@
["." monad (#+ do)]]
[control
[pipe (#+ when>)]
+ ["." try (#+ Try)]
["ex" exception (#+ exception:)]
[security
["!" capability]]]
@@ -11,7 +12,6 @@
[data
["." maybe]
["." product]
- ["." error (#+ Error)]
[format
["md" markdown (#+ Markdown Span Block)]]
["." text ("#;." equivalence)
@@ -484,15 +484,15 @@
(-> [Text (Markdown Block)] (IO Any))
(let [path (format (text.replace-all "/" "_" module-name) ".md")]
(do io.monad
- [outcome (do (error.with io.monad)
- [target (: (IO (Error (File IO)))
+ [outcome (do (try.with io.monad)
+ [target (: (IO (Try (File IO)))
(file.get-file io.monad file.system path))]
(!.use (:: target over-write) (encoding.to-utf8 (md.markdown documentation))))]
(case outcome
- (#error.Failure error)
+ (#try.Failure error)
(wrap (log! (ex.construct io-error error)))
- (#error.Success _)
+ (#try.Success _)
(wrap [])))))
(macro: (gen-documentation! _)