Skip to content

Switch from c2hs to hs-bindgen#42

Draft
georgefst wants to merge 42 commits intomasterfrom
hs-bindgen
Draft

Switch from c2hs to hs-bindgen#42
georgefst wants to merge 42 commits intomasterfrom
hs-bindgen

Conversation

@georgefst
Copy link
Copy Markdown
Owner

@georgefst georgefst commented Mar 31, 2026

To be squash-merged...

This is now looking pretty good, apart from two remaining hacks:

  • Hardcoded Nix store paths in the TH generation code.
  • We're using a messy vibe-coded Generator.hs to produce Codes.hs. We should clean this up if keeping it. Otherwise maybe hs-bindgen's CEnum stuff could be adapted to be used with macro-based enums. There'd have to be some way to specify the grouping of the constants in to separate types, e.g. by newline-separated block or name prefix.

@georgefst georgefst mentioned this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant