Skip to content

fix: update main function docs to reflect default handlers#293

Merged
magnus-madsen merged 1 commit intomasterfrom
fix/update-main-function-docs
Feb 24, 2026
Merged

fix: update main function docs to reflect default handlers#293
magnus-madsen merged 1 commit intomasterfrom
fix/update-main-function-docs

Conversation

@magnus-madsen
Copy link
Member

Summary

  • Rewrite src/main.md to document that main can use any effect with a default handler (Env, Exit, Clock, Logger, etc.), not just IO. Add sections for effects of main, accessing command line arguments (Env.getArgs()), and exiting the program (Exit.exit).
  • Update src/hello-world.md to replace outdated Environment.getArgs reference with the Env effect.

Closes #285

Test plan

  • mdbook build succeeds with no errors or broken links
  • Review that cross-references to default-handlers.md resolve correctly in the rendered book

🤖 Generated with Claude Code

Update main.md to document that main can use any effect with a default
handler (Env, Exit, Clock, Logger, etc.), not just IO. Replace outdated
Environment.getArgs() with Env.getArgs(). Add sections for accessing
command line arguments and exiting the program.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@magnus-madsen magnus-madsen merged commit e7b7f0d into master Feb 24, 2026
1 check passed
@magnus-madsen magnus-madsen deleted the fix/update-main-function-docs branch February 24, 2026 10:10
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.

Signature of main()

1 participant