Skip to content

Instantly share code, notes, and snippets.

@edw
Created December 19, 2018 11:52
Show Gist options
  • Select an option

  • Save edw/55b7c811d9f74e2bd5c9910da10c6b82 to your computer and use it in GitHub Desktop.

Select an option

Save edw/55b7c811d9f74e2bd5c9910da10c6b82 to your computer and use it in GitHub Desktop.
Gerbil Cookbook

In Gerbil Scheme, how do I …

Import R7RS libraries?

In the root of the directory structure that contains your libraries:

$ cat > gerbil.pkg
(prelude: :scheme/r7rs)
^D

If you have a library (example my-lib), the gerbil.pkg file should be in whatever directory contains the example directory.

Reload a module that I've updated the source to?

(reload :example/my-lib)

Add a directory to the load path?

(add-load-path "./lib")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment