Hi Andy,

On 22.04.2010, at 09:13, Andy Stewart wrote:

>
> Because WebKit need below modules:
>          Graphics.UI.Gtk.General.DNDTypes
>          Graphics.UI.Gtk.General.Threading
>          Graphics.UI.Gtk.Types
> So i push new patches to make gtk.cabal expose those modules.

This can't work for a very technical reason in the Setup.hs file: No  
internal .chs module may depend on any exposed .chs module. Moving  
Types.chs from the internal list to the exposed module list violates  
this. What do you need from these modules?
Maybe we should create an exposed module Graphics.UI.Gtk.Internals  
that re-exports certain types that normal users should not touch.

I would really like to keep Types hidden and re-export all entities  
relating to a specific type from that module. Thus, we would need to  
add castToScreen, gTypeScreen to Screen. The module  
Graphics.UI.Gtk.Internals could then simply re-export all of Types.  
This would ensure that normal users who import Graphics.UI.Gtk do not  
get mkScreen and unScreen but they would get gTypeScreen and  
castToScreen.

Would that be a possibility?

Cheers,
Axel


------------------------------------------------------------------------------
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to