aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2019-03-30 21:45:45 -0400
committerEduardo Julian2019-03-30 21:45:45 -0400
commit118895081d97279a796cc704e6c23bf92ed79e5e (patch)
tree1ea654e3f913bfc5f978bba46620c535e7a4a7bc /lux-python
parent5009bfaa56119a58e675a1e6008623790b54cc1c (diff)
Re-named "do-template" to "template".
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!)