aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/host.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/host.jvm.lux')
-rw-r--r--stdlib/source/lux/host.jvm.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/host.jvm.lux b/stdlib/source/lux/host.jvm.lux
index eeefb361d..1daa2ded1 100644
--- a/stdlib/source/lux/host.jvm.lux
+++ b/stdlib/source/lux/host.jvm.lux
@@ -7,12 +7,12 @@
[control
["." function]
["." io]
+ ["." try (#+ Try)]
["p" parser ("#@." monad)
["s" code (#+ Parser)]]]
[data
["." maybe]
["." product]
- ["." error (#+ Error)]
["." bit ("#@." codec)]
number
["." text ("#@." equivalence monoid)
@@ -1758,7 +1758,7 @@
(:coerce Bit)))
(def: load-class
- (-> Text (Error (primitive "java.lang.Class" [Any])))
+ (-> Text (Try (primitive "java.lang.Class" [Any])))
(|>> (:coerce (primitive "java.lang.String"))
["Ljava/lang/String;"]
("jvm member invoke static" "java.lang.Class" "forName")
@@ -1794,7 +1794,7 @@
"Special options can also be given for the return values."
"#? means that the values will be returned inside a Maybe type. That way, null becomes #.None."
- "#try means that the computation might throw an exception, and the return value will be wrapped by the Error type."
+ "#try means that the computation might throw an exception, and the return value will be wrapped by the Try type."
"#io means the computation has side effects, and will be wrapped by the IO type."
"These options must show up in the following order [#io #try #?] (although, each option can be used independently)."
(import: java/lang/String