George Thomas
96ec5c1cb1
Switch to Template Haskell mode for hs-bindgen
2026-02-20 09:08:16 +00:00
George Thomas
20b47594c6
Avoid IO for tree sum
2026-02-19 21:35:35 +00:00
George Thomas
58005ee261
Refactor to use continuation monad
2026-02-19 21:18:37 +00:00
George Thomas
ca063b1dd6
Rename tree types
2026-02-19 21:11:58 +00:00
George Thomas
55a781eeb8
Add tree example
2026-02-19 20:44:04 +00:00
George Thomas
2a80e5b219
Minor simplification
2026-02-19 17:22:15 +00:00
George Thomas
9ca4f615d8
Use simpler tagged union translation
...
Avoids the worst part of the header hack, and makes Haskell wrapper simpler.
2026-02-19 17:22:15 +00:00
George Thomas
5019af701f
Mark pure function
2026-02-19 17:22:15 +00:00
George Thomas
5907a064a7
Use fixed-width integers
...
Even though `Int` and `isize` should be the same in practice, we can't cleanly convert, as the type information isn't quite there. And anyway, strictly speaking per the report, `Int` is only guaranteed to hold 30 bits.
Note that this is essentially unchanged even if we specify `usize_is_size_t = true` for `cbindgen`.
2026-02-19 17:19:28 +00:00
George Thomas
024b6aec87
Implement function with return value
2026-02-19 16:29:52 +00:00
George Thomas
25875c7dc1
Move Haskell package to top level
2026-02-19 16:29:52 +00:00