Skip to content

fix(prettify): render fractions and separators correctly - #19

Merged
rasheedja merged 3 commits into
masterfrom
fix/fraction-formatting
Oct 4, 2026
Merged

rasheedja merged 3 commits into
masterfrom
fix/fraction-formatting

Conversation

@rasheedja

Copy link
Copy Markdown
Owner

Summary

  • Render fractional coefficients with their denominator. Previously, 1/2 was printed as 1 / 1.
  • Use Data.List.intercalate to place + between terms, removing trailing separators from expressions, constraints, and objectives.
  • Add positive and negative fraction coverage and update the existing formatting expectations. The empty-expression representation remains unchanged.

This PR targets master and has no dependency on the solver fixes.

Validation

  • Updated formatting regressions failed before the fix.
  • stack test --no-terminal: 272 examples, 0 failures.
  • cabal check: no errors or warnings.
  • Fourmolu 0.15.0.0 check of all tracked Haskell files passed.
  • stack haddock --no-haddock-deps and git diff --check passed.

@rasheedja
rasheedja merged commit 60f5cf9 into master Oct 4, 2026
23 checks passed
@rasheedja
rasheedja deleted the fix/fraction-formatting branch October 4, 2026 10:34
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