racket/collects/typed-scheme/minimal.ss
Sam Tobin-Hochstadt 621cff1d9a Move typed-scheme/lang/main.ss to typed-scheme/main.ss.
Fix documentation to match.

svn: r8886
2008-03-04 23:18:16 +00:00

29 lines
969 B
Scheme

#lang scheme/base
(provide #%module-begin provide require rename-in rename-out prefix-in only-in all-from-out except-out except-in
providing begin)
(require (for-syntax scheme/base))
(define-for-syntax ts-mod "typed-scheme.ss")
(define-syntax (providing stx)
(syntax-case stx (libs from basics except)
[(form (libs (except lb ex ...) ...) (basics b ...) (from spec id ...) ...)
(datum->syntax
stx
(syntax->datum
(with-syntax ([(b* ...) (generate-temporaries #'(b ...))]
[ts ts-mod])
(syntax/loc
stx
(begin
(require (except-in ts b ...))
(require (only-in ts [b b*] ...))
(require (except-in lb ex ...) ...)
(require (only-in spec id ...) ...)
(provide id ...) ...
(provide (rename-out [b* b] ...))
(provide (all-from-out ts))
(provide (all-from-out lb) ...))))))]))