Skip to content

fix: update Console to use Sys.Console and new effect API#301

Merged
magnus-madsen merged 2 commits intomasterfrom
fix/update-console-to-sys-console
Mar 10, 2026
Merged

fix: update Console to use Sys.Console and new effect API#301
magnus-madsen merged 2 commits intomasterfrom
fix/update-console-to-sys-console

Conversation

@magnus-madsen
Copy link
Member

@magnus-madsen magnus-madsen commented Mar 10, 2026

Summary

  • Add use Sys.Console import to all code blocks using the Console effect
  • Replace Console.readLine() with Console.readln() to match the current effect API
  • Update printing-to-stdout.md to show the eff Console declaration (with readln, print, eprint, println, eprintln) instead of the old mod Console

Test plan

  • Verify code examples compile with the current Flix compiler
  • Review that all Console usages match the Sys.Console effect API

🤖 Generated with Claude Code

magnus-madsen and others added 2 commits March 10, 2026 12:42
- Add `use Sys.Console` import to all code blocks using the Console effect
- Replace `Console.readLine()` with `Console.readln()` to match new API
- Update printing-to-stdout.md to show the effect declaration instead of old module

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removed unnecessary import of Sys.Console from the Console effect documentation.
@magnus-madsen magnus-madsen merged commit 8820892 into master Mar 10, 2026
1 check passed
@magnus-madsen magnus-madsen deleted the fix/update-console-to-sys-console branch March 10, 2026 11:43
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