Note the difference between https://hackage.haskell.org/package/gi-gio-2.0.30/docs/GI-Gio-Callbacks.html#t:AsyncReadyCallback ``` type AsyncReadyCallback = Maybe Object -> AsyncResult -> IO () ``` and https://hackage.haskell.org/package/gi-gio-2.0.32/docs/GI-Gio-Callbacks.html#t:AsyncReadyCallback ``` type AsyncReadyCallback = Maybe Object -> AsyncResult -> Ptr () -> IO () ``` I encountered this because it breaks jsaddle-webkit2gtk https://github.com/ghcjs/jsaddle/pull/137. According to https://github.com/haskell-gi/haskell-gi/issues/381#issuecomment-1079094406 you don’t intend that `Ptr ()` argument to be exposed. We suspect https://gitlab.gnome.org/GNOME/glib/commit/fc70f2c057f3f28d35233b756ec786103d4e769f is the reason that the code generation fails. Apparently rust has similar problems with their bindings: https://github.com/gtk-rs/gir/issues/1428 Thanks to @jtojnar for helping me debug this.
Note the difference between
https://hackage.haskell.org/package/gi-gio-2.0.30/docs/GI-Gio-Callbacks.html#t:AsyncReadyCallback
and
https://hackage.haskell.org/package/gi-gio-2.0.32/docs/GI-Gio-Callbacks.html#t:AsyncReadyCallback
I encountered this because it breaks jsaddle-webkit2gtk ghcjs/jsaddle#137.
According to #381 (comment) you don’t intend that
Ptr ()argument to be exposed.We suspect https://gitlab.gnome.org/GNOME/glib/commit/fc70f2c057f3f28d35233b756ec786103d4e769f is the reason that the code generation fails. Apparently rust has similar problems with their bindings: gtk-rs/gir#1428
Thanks to @jtojnar for helping me debug this.