Version: 5.0.0.4
9 Modules
9.1 Require and Provide
This module provides tools for managing the imports and exports of modules.
Re-exports all bindings provided by each module-path. Equivalent to:
Produces the names exported by the require-specs as a list of symbols.
Example: |
> (quote-require scheme/bool scheme/function) |
'(false true symbol=? false? boolean=? negate curryr curry const) |
This form performs a require into a local definition context. It achieves this
by lifting a
#%require form to the top level and introducing the
bindings locally with rename transformers. For many purposes this is the same
as a regular
require; however, only bindings for the current phase are
made available, and all names are introduced as syntax bindings even if the
exported identifiers included value bindings.
Defines a shortcut
name for importing modules from planet package
package. Subsequently,
(name module) is equivalent to
(planet package/module) as a require path. For instance, to import the
text and
web modules from this package:
The above require is equivalent to:
(require (planet cce/scheme/web) (planet cce/scheme/text))
Defines a shortcut name for importing modules from collect and
its subcollections. Subsequently, (name) is equivalent to
collect as a require path, and (name path) is equivalent to
collect/path.
The above require is equivalent to the below:
(require syntax/parse)
This
require transformer
imports the file at
path in the current planet package. For instance,
in this package (
cce/scheme:7:1), writing:
... is equivalent to writing:
9.2 PLaneT Packages
This module provides tools relating to PLaneT packages. In addition to the
binding described below, it provides define-planet-package and
this-package-in from (planet cce/scheme:7:1/require-provide), and
make-planet-path, syntax-source-planet-package,
syntax-source-planet-package-owner,
syntax-source-planet-package-name,
syntax-source-planet-package-major,
syntax-source-planet-package-minor, and
syntax-source-planet-package-symbol from
(planet cce/scheme:7:1/syntax).
Produces a symbol corresponding to a
planet module path for the current
planet package, possibly with a ‹
path› (from the grammar of
planet module specs) into the package. This is similar to
this-package-version and similar tools from
planet/util.