-
Notifications
You must be signed in to change notification settings - Fork 3
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
Code Generation for JSFFI/JSADDLE #3
Comments
The things in square brackets like |
ah good - I'll have a go at that thx |
Hi - I have made a few modifications and want to test them - could you tell me how I would do that? When I call |
Sorry, I missed this somehow. The idea is that you run domconv-webkit-jsffi in a clone of the ghcjs-dom git repo. So it will pick up this webkit.idl file. When using domconv-webkit-jsaddle you run it in a clone of the jsaddle-dom git repo (it also contains a webkit.idl file. |
should I provide a pr for ghcjs-dom-jsffi, which uses the new code generator? |
Hi I am studying the code generation - in order to make function calls safe - where necessary.
This ticket is a follow up - to provide a PR for ghcjs/ghcjs-dom#78
I have had a look at the idl-files in webkitgtk-2.17.2, as well as some of hdirect-0.21.
To make the
unsafe
foreign function calls safe - I guess one would have to modify(maybe a few more) and change the
H.HsUnsafe
- dependently if there are*MayThrowException
annotations in the idl-files, which are used to genereate the Haskell bindings.Status of DOMCONV
If I understood correctly there is
domconv-webkit/domconv-webkit-jsffi.hs
domconv-webkit/domconv-webkit-jsaddle.hs
and in the syntax/parser files
that relate to exception parsing.
But I do not understand which parts in the idl-files they resemble - I tried to
> ack "ConstructorRaisesException"
in the webkit-2.17.2 directory (ack) without any results.Status of IDL-Files
On the other hand searching for
MayThrowException
which can be found in for example in Websocket.idl.There is yields no result in the domconv-webkit files.
The only idl files where I found "ConstructorRaisesException - is some ancient webkit repository of adobe adobe/webkit from 2012.
Questions
MayThrowException
?RaisesException
statements in the existing parsers for?The text was updated successfully, but these errors were encountered: