aboutsummaryrefslogtreecommitdiff
path: root/lux-ruby
diff options
context:
space:
mode:
authorEduardo Julian2021-08-24 05:23:45 -0400
committerEduardo Julian2021-08-24 05:23:45 -0400
commit36303d6cb2ce3ab9e36d045b9516c997bd461862 (patch)
treeb9d2f1495143054d61d9af129f36833624db9dac /lux-ruby
parentec1f31b5a1492d5e0ab260397291d4449483bbd9 (diff)
Outsourced the syntax for labelled type definitions to macros.
Diffstat (limited to 'lux-ruby')
-rw-r--r--lux-ruby/source/program.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux
index f66262971..50253a545 100644
--- a/lux-ruby/source/program.lux
+++ b/lux-ruby/source/program.lux
@@ -137,12 +137,12 @@
)
(syntax: (method_inputs [input_classes (<code>.tuple (<>.some <code>.any))])
- (monad.map meta.monad
- (function (_ class)
- (do meta.monad
- [var (macro.identifier "input")]
- (wrap (code.record (list [var class])))))
- input_classes))
+ (monad.each meta.monad
+ (function (_ class)
+ (do meta.monad
+ [var (macro.identifier "input")]
+ (wrap (code.record (list [var class])))))
+ input_classes))
(import: org/jruby/runtime/JavaSites$CheckedSites)
(import: org/jruby/runtime/builtin/Variable)