Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate "Prelude" of standard C types #293

Open
edsko opened this issue Nov 20, 2024 · 0 comments
Open

Generate "Prelude" of standard C types #293

edsko opened this issue Nov 20, 2024 · 0 comments

Comments

@edsko
Copy link
Collaborator

edsko commented Nov 20, 2024

In the repository there is a file standard_headers.h which imports all of the C standard library. We also have a skeleton implementation of some code (bootstrapPrelude) that trawls through these definitions; currently this is only being used to check if the macro parser is failing to parse some macros that we should be parsing (just to have a source of examples). We should extend this to make a list of all standard types in the standard library, and ensure that for all of these standard C types we have a well-defined translation to standard Haskell types (either from base or from hs-bindgen-patterns).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants