haskell: Phase 10 conformance — statistics.hs (5/5) + newton.hs (5/5), Phase 10 complete
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m10s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-07 08:33:00 +00:00
parent a5c41d2573
commit d2638170db
4 changed files with 104 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ No OCaml changes are needed. The view type is fully representable as an SX dict.
target; covers fromIntegral identity, sqrt/floor/ceiling/round/truncate,
Float literal show, division/recip/fromRational, pi/exp/log/sin/cos,
`2 ** 10 = 1024`. Filename is plural — divergence noted in the plan.)
- [ ] Conformance programs:
- [x] Conformance programs:
- `statistics.hs` — mean, variance, std-dev on a `[Double]`. Exercises
`fromIntegral`, `sqrt`, `/`.
- `newton.hs` — Newton's method for square root. Exercises `Float`, `abs`,
@@ -304,6 +304,14 @@ No OCaml changes are needed. The view type is fully representable as an SX dict.
_Newest first._
**2026-05-07** — Phase 10 conformance: statistics.hs (5/5) + newton.hs (5/5) → Phase 10 complete:
- `program-statistics.sx`: mean / variance / stdDev on a [Double], exercising
`sum`, `map`, `fromIntegral`, `/`, `sqrt`. 5/5.
- `program-newton.sx`: Newton's method for sqrt, exercising `abs`, `/`, `*`,
recursion termination on tolerance 0.0001, and `(<)` to assert convergence
to within 0.001 of the true value. 5/5.
- Both added to `PROGRAMS` in `conformance.sh`. Phase 10 fully complete.
**2026-05-07** — Phase 10 numerics test file checkbox (filename divergence):
- Plan called for `lib/haskell/tests/numeric.sx`. From the very first Phase 10
iteration I created `numerics.sx` (plural) and have been growing it. Now