Skip to content
Chris Petersen edited this page Aug 8, 2013 · 2 revisions

Modules are located in the ./modules framework subdirectory, and offer a simple way to modularize code and share it between applications.

To create a module, add a directory to ./modules/ with the desired module name, e.g.

$ mkdir ./modules/mymodule

and create a source file of the same name in this directory, e.g. mymodule.scm:

$ cat ./modules/mymodule/mymodule.scm
(define (myfunction) 
   (for-each display (list "This is my " 1 "st module" "\n")))

The module code can now be included in the framework applications by adding its name to the MODULES file in the application directories.

Clone this wiki locally