Skip to content

docs: a library ships no main - #2

Merged
wstein merged 1 commit into
mainfrom
docs/library-has-no-main
Aug 27, 2026
Merged

wstein merged 1 commit into
mainfrom
docs/library-has-no-main

Conversation

@wstein

@wstein wstein commented Aug 27, 2026

Copy link
Copy Markdown
Owner

One line each in the README and AGENTS.md, next to the naming advice.

This template ships src/Main.flix, which is right for an app and fatal for a library: Flix allows one main per program, so the consumer's entry point collides with the package's. It cost flix-cube-solvers a release to find out — 0.3.0 could not be depended on by anything.

Flix allows one main per program, so a package that has one cannot be
depended on. Cost a release to find out.
@wstein
wstein merged commit da0473b 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