Skip to content

Avoid partial tail warning in sketchSchema - #124

Open
gorban wants to merge 2 commits into
biocad:masterfrom
gorban:fix/sketch-schema-total-comparison
Open

gorban wants to merge 2 commits into
biocad:masterfrom
gorban:fix/sketch-schema-total-comparison

Conversation

@gorban

@gorban gorban commented Sep 30, 2026 •

Copy link
Copy Markdown

GHC 9.14 reports -Wx-partial for tail in sketchSchema. We are aiming for a strict build with Aeson 2.3; Together with PR #120 that addresses the separate Aeson bound, we could achieve a desired -Werror build.

Replace tail ys with drop 1 ys to make the adjacent-schema comparison total without changing the generated schemas. Add regression tests for empty, singleton, homogeneous, heterogeneous, and nested arrays.

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