From d6c48ae6a8b58f5974133170863a31c70f0123d1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 14 Jul 2021 13:59:02 -0400 Subject: Normalized the hierarchy of the standard library modules. --- stdlib/source/program/scriptum.lux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdlib/source/program/scriptum.lux') diff --git a/stdlib/source/program/scriptum.lux b/stdlib/source/program/scriptum.lux index 0d86b0f1c..420b40a8b 100644 --- a/stdlib/source/program/scriptum.lux +++ b/stdlib/source/program/scriptum.lux @@ -272,8 +272,9 @@ (def: (lux-module? module-name) (-> Text Bit) - (or (text\= "lux" module-name) - (text.starts-with? "lux/" module-name))) + (let [prefix (format .prelude_module "/")] + (or (text\= .prelude_module module-name) + (text.starts-with? prefix module-name)))) (def: (add-definition [name [def-type def-annotations def-value]] organization) (-> [Text Definition] Organization Organization) -- cgit v1.2.3