diff options
Diffstat (limited to 'stdlib/source/lux/host.old.lux')
-rw-r--r-- | stdlib/source/lux/host.old.lux | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/host.old.lux b/stdlib/source/lux/host.old.lux index abda3863a..c559d3555 100644 --- a/stdlib/source/lux/host.old.lux +++ b/stdlib/source/lux/host.old.lux @@ -6,12 +6,12 @@ [control ["." function] ["." io] + ["." try (#+ Try)] ["p" parser ["s" code (#+ Parser)]]] [data ["." maybe] ["." product] - ["." error (#+ Error)] ["." bit ("#@." codec)] number ["." text ("#@." equivalence monoid) @@ -1788,7 +1788,7 @@ ("jvm invokevirtual:java.lang.Class:isInterface:" class)) (def: (load-class class-name) - (-> Text (Error (primitive "java.lang.Class" [Any]))) + (-> Text (Try (primitive "java.lang.Class" [Any]))) (try ("jvm invokestatic:java.lang.Class:forName:java.lang.String" class-name))) (def: (class-kind [class-name _]) @@ -1821,7 +1821,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 |