Skip to content

docs: say how to name modules, and why it matters more than it looks - #1

Merged
wstein merged 1 commit into
mainfrom
docs/module-naming
Aug 27, 2026
Merged

docs: say how to name modules, and why it matters more than it looks#1
wstein merged 1 commit into
mainfrom
docs/module-naming

Conversation

@wstein

@wstein wstein commented Aug 27, 2026

Copy link
Copy Markdown
Owner

A module has one declaration site in the whole program, dependencies included — two packages that both declare mod Cube cannot be used together, and nothing warns you until someone tries.

Adds the convention Flix libraries already follow: one root namespace named after the package, directories mirroring module paths, Internal for what is not API, names spelled out, flat tests. README section plus the same as bullets in AGENTS.md.

Docs only.

A module has one declaration site in the whole program, dependencies
included, so two packages that both declare mod Cube cannot be used
together. Adds the convention Flix libraries follow.
@wstein
wstein force-pushed the docs/module-naming branch from 1c52a5f to 8be3fa6 Compare August 27, 2026 20:47
@wstein
wstein merged commit 99e5066 into main Aug 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant