Skip to content

Conversation

@diskshima
Copy link
Owner

@diskshima diskshima commented Oct 11, 2025

Summary

This PR corrects an invalid GHC optimization flag in the executable configuration.

Changes

  • Changed the GHC optimization flag from -O4 to -O2 in the executable's ghc-options
  • Bumped version to 0.9.9.0

Rationale

GHC only recognizes three optimization levels:

  • -O0: No optimization
  • -O1: Moderate optimization
  • -O2: Full optimization (recommended for production)

The -O4 flag is not a valid GHC optimization level. While GHC treats it the same as -O2, using -O4 is misleading and doesn't follow Haskell best practices. This change explicitly uses -O2 to make the optimization level clear and correct.

Test Plan

  • Build the project successfully: cabal build
  • Verify executable works as expected
  • Confirm optimization is applied (check binary size and performance)

🤖 Generated with Claude Code

GHC only recognizes three optimization levels: -O0, -O1, and -O2.
The -O4 flag is not valid and is treated as -O2, making it misleading.
This change explicitly uses -O2 to enable all recommended optimizations
for the executable.

Also bump version to 0.9.9.0.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@diskshima diskshima force-pushed the fix/correct-optimization-flags branch from 0e073fd to ba4bad7 Compare October 12, 2025 00:32
@diskshima diskshima changed the base branch from main to copilot/improve-api-error-messages October 12, 2025 00:32
Base automatically changed from copilot/improve-api-error-messages to main October 12, 2025 03:24
@diskshima diskshima merged commit 2bb46eb into main Oct 12, 2025
2 checks passed
@diskshima diskshima deleted the fix/correct-optimization-flags branch October 12, 2025 03:25
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