8. Modules And Project Structure

An Alef project starts with a small shape:


my-alef-program/
├── alef.mod
├── main.alef
├── README.md
└── scripts/
    └── smoke.sh

alef.mod


module my-alef-program

version 0.1.0

Imports

Import names from a module:


import std.http { html, json_response }

Or use qualified names:


std.http.listen_options(address, app(), options)

Public Example Rule

If a repo is meant to teach Alef, it should include a smoke script. The script is proof that the README is true.