diff options
Diffstat (limited to 'stdlib/source/library/lux.lux')
-rw-r--r-- | stdlib/source/library/lux.lux | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux.lux b/stdlib/source/library/lux.lux index 28507c829..41f6ab0ed 100644 --- a/stdlib/source/library/lux.lux +++ b/stdlib/source/library/lux.lux @@ -4182,7 +4182,7 @@ _ (failure (all text#composite - "Can only 'open:' structs: " (symbol#encoded implementation) + "Can only 'use' structs: " (symbol#encoded implementation) " : " (type#encoded interface)))))) (def (localized module global) @@ -4194,7 +4194,7 @@ _ global)) -(def .public open: +(def .public use (macro (_ tokens) (case (..parsed (all ..andP (..maybeP (all ..andP @@ -4240,7 +4240,7 @@ implementations)) .let [[pre_defs implementations] pre_defs,implementations]] (in (|> pre_defs - {#Item (` (..open: + {#Item (` (..use (~ (text$ current_module)) (~ (text$ imported_module)) (~ (text$ import_alias)) @@ -4250,7 +4250,7 @@ {.#None} - (failure (..wrong_syntax_error (symbol ..open:)))))) + (failure (..wrong_syntax_error (symbol ..use)))))) (def (imported_by? import_name module_name) (-> Text Text (Meta Bit)) @@ -5021,7 +5021,7 @@ (` ((~ (symbol$ macro)) (~+ parameters)))) referrals))))) -(def .public using +(def .public require (macro (_ _imports) (do meta#monad [current_module ..current_module_name |