Files
rose-ash/lib/haskell/scoreboard.md
giles 544e79f533
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 18s
haskell: fix string ↔ [Char] equality — palindrome 12/12, conformance 34/34 (269/269)
Haskell strings are [Char]. Calling reverse / head / length on a SX raw
string transparently produces a cons-list of char codes (via hk-str-head /
hk-str-tail in runtime.sx), but (==) then compared the original raw string
against the char-code cons-list and always returned False — so
"racecar" == reverse "racecar" was False.

Added hk-try-charlist-to-string and hk-normalize-for-eq in eval.sx; routed
== and /= through hk-normalize-for-eq so a string compares equal to any
cons-list whose elements are valid Unicode code points spelling the same
characters, and "[]" ↔ "".

palindrome.hs lifts from 9/12 → 12/12; conformance 33/34 → 34/34 programs,
266/269 → 269/269 tests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 20:35:28 +00:00

1.1 KiB

Haskell-on-SX Scoreboard

Updated 2026-05-07 · Phase 6 (prelude extras + 18 programs)

Program Tests Status
fib.hs 2/2
sieve.hs 2/2
quicksort.hs 5/5
nqueens.hs 2/2
calculator.hs 5/5
collatz.hs 11/11
palindrome.hs 12/12
maybe.hs 12/12
fizzbuzz.hs 12/12
anagram.hs 9/9
roman.hs 14/14
binary.hs 12/12
either.hs 12/12
primes.hs 12/12
zipwith.hs 9/9
matrix.hs 8/8
wordcount.hs 10/10
powers.hs 14/14
caesar.hs 8/8
runlength-str.hs 9/9
showadt.hs 5/5
showio.hs 5/5
partial.hs 7/7
statistics.hs 5/5
newton.hs 5/5
wordfreq.hs 7/7
mapgraph.hs 6/6
uniquewords.hs 4/4
setops.hs 8/8
shapes.hs 5/5
person.hs 7/7
config.hs 10/10
counter.hs 7/7
accumulate.hs 8/8
Total 269/269 34/34 programs