phase 22 Haskell: runtime.sx + 143 tests
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

lib/haskell/runtime.sx (113 forms): numeric type class helpers
(hk-div/mod/rem/quot floor semantics), rational numbers (dict-based,
GCD-normalised), hk-force for lazy promises, Data.Char (hk-ord/chr,
inline ASCII predicates, digit-to-int), Data.Set wrappers, Data.List
(take/drop/zip/nub/foldl/foldr/scanl/etc), Maybe/Either ADTs, tuple
helpers (hk-pair/fst/snd/curry/uncurry), string helpers (words/lines/
is-prefix-of/is-infix-of/etc), hk-show.

test.sh updated to pre-load runtime.sx alongside tokenizer.sx.
143/143 runtime tests + 5/5 parse tests = 148/148 total.
This commit is contained in:
2026-05-01 21:41:11 +00:00
parent a7790418f8
commit c02ffcf316
3 changed files with 960 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ for FILE in "${FILES[@]}"; do
cat > "$TMPFILE" <<EPOCHS
(epoch 1)
(load "lib/haskell/tokenizer.sx")
(load "lib/haskell/runtime.sx")
(epoch 2)
(load "$FILE")
(epoch 3)
@@ -81,6 +82,7 @@ EPOCHS
cat > "$TMPFILE2" <<EPOCHS
(epoch 1)
(load "lib/haskell/tokenizer.sx")
(load "lib/haskell/runtime.sx")
(epoch 2)
(load "$FILE")
(epoch 3)