On this page:
module-exports
export?
variable-export?
syntax-export?
export-name
export-phase
export-origins
export-origin?
export-origin-source-module
export-origin-phase
export-origin-phase-shift
export-origin-imported-alias
7.3

9 Module Exports

 (require rebellion/module-export) package: rebellion

procedure

(module-exports modpath)  (set/c export? #:cmp 'equal)

  modpath : module-path?
Loads modpath and returns its exports. This function is a convenience wrapper around module->exports.

Example:
> (module-exports 'racket/bool)

(set

 (variable-export 'false?)

 (syntax-export 'nand)

 (variable-export 'true)

 (syntax-export 'nor)

 (variable-export 'boolean=?)

 (syntax-export 'implies)

 (variable-export 'symbol=?)

 (variable-export 'xor)

 (variable-export 'false))

procedure

(export? v)  boolean?

  v : any/c
A predicate for module exports returned by module-exports.

procedure

(variable-export? v)  boolean?

  v : any/c
A predicate for variable exports. Implies export?.

procedure

(syntax-export? v)  boolean?

  v : any/c
A predicate for syntax exports. Implies export?.

procedure

(export-name export)  symbol?

  export : export?

procedure

(export-phase export)  (or/c exact-integer? #f)

  export : export?

procedure

(export-origins export)  (set/c export-origin? #:cmp 'equal)

  export : export?
Accessors for a module export’s name, phase, and set of origins (for bindings that were required from other modules and then re-provided).

procedure

(export-origin? v)  boolean?

  v : any/c
A predicate for module export origin information.

procedure

(export-origin-source-module origin)  module-path-index?

  origin : export-origin?

procedure

(export-origin-phase origin)  (or/c exact-integer? #f)

  origin : export-origin?

procedure

(export-origin-phase-shift origin)  (or/c exact-integer? #f)

  origin : export-origin?

procedure

(export-origin-imported-alias origin)  (or/c symbol? #f)

  origin : export-origin?
Accessors for the various fields of a module export origin information value.