-
Notifications
You must be signed in to change notification settings - Fork 72
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
Re-export hand-written bindings for basic types in the expected places #315
Comments
Thanks! (And sorry for the slow reply!) This is on purpose, but I agree that it is confusing. The autogenerated bindings export everything because the intended usage is by importing qualified, as you did. It is then convenient to do
But in order to avoid polluting the namespace too much, If you check the things that are actually exported, you'll find that not everything being exported from Does this sound reasonable? |
@garetxe maybe go for consistency? ie if we have to import qualified GI.Gtk as Gtk then perhaps we should also have to do import qualified GI.Glib as G although I just realized in a ghci session that |
This would make sense, but note that There is currently no support for adding hand-written code to autogenerated bindings, but I was planning to add it. I will keep this issue open as a reminder to add the re-export for |
Quick one: should
have resulted in the GType being in scope? I was mildly surprised I had to
explicitly before using GType when making a GtkListView.
(the blanket
brings in everything; wondering if you'd like the Glib base stuff to be similar?)
The text was updated successfully, but these errors were encountered: