Node:Creating Guile Modules, Next:Module System Quirks, Previous:Using Guile Modules, Up:The Guile module system
When you want to create your own modules, you have to take the following steps:
define-module
form at the beginning.
define-public
or export
(both documented below).
define-module module-name [options ...] | syntax |
module-name is of the form (hierarchy file) . One
example of this is
(define-module (ice-9 popen))
The options are keyword/value pairs which specify more about the defined module. The recognized options and their meaning is shown in the following table.
|
export variable ... | syntax |
Add all variables (which must be symbols) to the list of exported bindings of the current module. |
define-public ... | syntax |
Equivalent to (begin (define foo ...) (export foo)) .
|