haskell: Phase 14 conformance — person.hs (7/7) + config.hs (10/10), Phase 14 complete
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -264,7 +264,7 @@ No OCaml changes are needed. The view type is fully representable as an SX dict.
|
||||
- [x] Tests in `lib/haskell/tests/records.sx` (14/14, plan ≥12: creation
|
||||
with reorder, accessors, single + two-field update, case-alt + fun-LHS
|
||||
record patterns, `deriving Show` on record types).
|
||||
- [ ] Conformance programs:
|
||||
- [x] Conformance programs:
|
||||
- `person.hs` — `data Person = Person { name :: String, age :: Int }` with
|
||||
accessors, update, `deriving Show`.
|
||||
- `config.hs` — multi-field config record; partial update; defaultConfig
|
||||
@@ -315,6 +315,16 @@ No OCaml changes are needed. The view type is fully representable as an SX dict.
|
||||
|
||||
_Newest first._
|
||||
|
||||
**2026-05-07** — Phase 14 conformance: person.hs (7/7) + config.hs (10/10) → Phase 14 complete:
|
||||
- `program-person.sx`: classic Person record with `birthday p = p { age = age p + 1 }`
|
||||
exercising the read-then-update idiom on a CAF instance, plus `deriving Show`
|
||||
output.
|
||||
- `program-config.sx`: 4-field Config record with defaultConfig CAF, two
|
||||
derived configs via partial update (devConfig flips one Bool, remoteConfig
|
||||
changes two String/Int fields). 10 tests covering both branches preserve
|
||||
the unchanged fields.
|
||||
- Both added to `PROGRAMS` in `conformance.sh`. Phase 14 fully complete.
|
||||
|
||||
**2026-05-07** — Phase 14 unit tests `tests/records.sx` (14/14):
|
||||
- Covers creation (with field reorder), accessors, single-field update,
|
||||
two-field update, case-alt + fun-LHS record patterns, and `deriving Show`
|
||||
|
||||
Reference in New Issue
Block a user