/usr/lib/s9fes/help/module is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | S9 LIB (module <name> <definition> ...) ==> unspecific
(import <name> (<name_i> ...) <expression> ...) ==> object
(load-from-library "module.scm")
Simple modules. Inside of a MODULE expression, DEFINE defines
a local object and DEFINE* defines a public object. <Name> names
the module itself.
Expressions inside of IMPORT may use all <name_i>'s that are
being imported from the module <name>.
(begin ; Note: BEGIN is only needed for automatic testing
(module math
(define* (fact x)
(if (= 0 x) 1 (* x (fact (- x 1))))))
(import math (fact)
(fact 5))) ==> 120
|