On Jan 8, 2009, at 14:11, Duncan Coutts wrote: >> A cheaper interpretation of --disable-deprecated would be to remove >> all functionality in Gtk2Hs that we think should not be used anymore. >> Examples are the Event module which is replaced by EventM and also >> all module in TreeList/ are deprecated. I think this is your >> interpretation, but I just want to make sure that I understand what >> you're doing. Have you removed anything related to passing >> DISABLE_DEPRECATED to CPP? > > I'd suggest things in the Haskell code we want to deprecate should > just > use the DEPRECATED pragma rather than omitting them from the build. > Deprecating entire modules can be done by adding a DEPRECATED pragma > above the module declaration. > > I'd advocate reserving DISABLE_DEPRECATED for the cpp define for > the Gtk > header files.
Ok, that sounds reasonable. With respect to functions that are merely deprecated in Gtk2Hs, there are instances when they have been replaced by functions with the same name. In this case, it is necessary to stop exporting them (in Gtk.hs) and have the user explicitly import the corresponding modules. But I think that's a different issue. So: - we will use a single --disable-deprecated flag for autoconf which will define DISABLE_DEPRECATED when reading the gtk.h header file. - we will remove all definitions from the built that are deprecated with respect to the latest available release of Gtk+ - we will use deprecated pragmas for all functions that are part of Gtk2Hs and that we don't want people to use - deprecated names/modules in Gtk2Hs may be omitted from Gtk.hs if they clash but are available if they don't clash Axel. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel