aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
Diffstat (limited to 'lux-python')
-rw-r--r--lux-python/source/program.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index 5baf9db04..33742d694 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -200,7 +200,7 @@
(def: (read host-object)
Translator
- (`` (<| (~~ (do-template [<class> <processing>]
+ (`` (<| (~~ (template [<class> <processing>]
[(case (host.check <class> host-object)
(#.Some host-object)
(#error.Success (<| <processing> host-object))
@@ -217,7 +217,7 @@
[org/python/core/PyArray org/python/core/PyArray::getArray]
[(Array java/lang/Object) (|>)]
))
- (~~ (do-template [<class> <processing>]
+ (~~ (template [<class> <processing>]
[(case (host.check <class> host-object)
(#.Some host-object)
(<| <processing> host-object)
@@ -289,11 +289,11 @@
(do error.monad
[output (org/python/util/PythonInterpreter::eval (_.code input) interpreter)]
(..read output))))
- execute! (: (-> Text (_.Statement Any) (Error Nothing))
+ execute! (: (-> Text (_.Statement Any) (Error Any))
(function (execute! alias input)
(do error.monad
[_ (org/python/util/PythonInterpreter::exec (_.code input) interpreter)]
- (wrap (:coerce Nothing [])))))]
+ (wrap []))))]
(: Host
(structure
(def: evaluate! evaluate!)