-
Notifications
You must be signed in to change notification settings - Fork 0
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
TH doesn't allow generating CTYPE pragma #124
Comments
I opened upstream issue https://gitlab.haskell.org/ghc/ghc/-/issues/25223, but we have to figure out what to do in the meantime. (I guess we simply wont' use CApiFFI for quite a while). |
Given both this problem as well as your reluctance to use |
I have thought about this, and I think it's worth it. We'd include only features we truly need.
Until we start working on high-level API generation, we don't even generate a lot of syntax. Not that high-level API would need all the GHC Haskell whistles either. |
Ok, then let's do that and introduce our own Haskell abstraction. |
One advantage of our own representation is that we can be more typed; rather than just specifying "class instance", we can say "this is a storable instance", and provide exactly what we need: the AST would be more typed. I'll start on this now. |
There are simply no entry for that in AST:
I feel that is a show stopper.
FWIW, it's not possible with
haskell-src-exts
either.The text was updated successfully, but these errors were encountered: