Typed Racket: reference `#%type-decl' through a module path index
Avoid problems with absolute paths and bytecode files.
This commit is contained in:
parent
fb64f06eaf
commit
f34a689bd7
|
@ -8,7 +8,7 @@
|
||||||
(parameterize ([current-namespace ns])
|
(parameterize ([current-namespace ns])
|
||||||
(for ([m (in-list to-require)]
|
(for ([m (in-list to-require)]
|
||||||
#:when m)
|
#:when m)
|
||||||
(dynamic-require (collapse-module-path '(submod "." #%type-decl) m)
|
(dynamic-require (module-path-index-join '(submod "." #%type-decl) m)
|
||||||
#f))))
|
#f))))
|
||||||
|
|
||||||
(provide add-mod! do-requires)
|
(provide add-mod! do-requires)
|
||||||
|
|
|
@ -392,7 +392,8 @@
|
||||||
(match a
|
(match a
|
||||||
[(list from to)
|
[(list from to)
|
||||||
#`(add-alias (quote-syntax #,from) (quote-syntax #,to))]))))
|
#`(add-alias (quote-syntax #,from) (quote-syntax #,to))]))))
|
||||||
(begin-for-syntax (add-mod! (quote-module-path))))
|
(begin-for-syntax (add-mod! (variable-reference->module-path-index
|
||||||
|
(#%variable-reference)))))
|
||||||
#`(begin
|
#`(begin
|
||||||
#,(if (null? (syntax-e #'(new-provs ...)))
|
#,(if (null? (syntax-e #'(new-provs ...)))
|
||||||
#'(begin)
|
#'(begin)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user