Deprecating functions

Johan Tibell johan.tibell at gmail.com
Fri Jan 9 10:12:57 UTC 2015


On Fri, Jan 9, 2015 at 11:09 AM, Roman Cheplyaka <roma at ro-che.info> wrote:

> On 09/01/15 12:02, Jan Stolarek wrote:
> >> We could file a tracking bug against the 7.14 milestone.
> > I was considering that but we don't have 7.14 milestone yet.
> >
> >> Just curious, is there a way to keep these functions for backwards
> compat
> >> in 7.14 or is that unfeasible?
> > They could stay, technically that's not a problem. But I'm adding new
> functions that can do the
> > same thing (and more), so we have redundancy.
>
> Can you hide them in the haddock but leave in the module, so that we
> don't break existing code?
>

I agree. You'll get rid of the redundancy in the library by removing it but
you're users will have to live with

#if MIN_VERSION_template_haskell(X,Y,X)
-- new way
#else
-- old way
#endif

for 3+ years (which is typically how many GHC versions popular libraries
try to support).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20150109/8c2865cb/attachment-0001.html>


More information about the ghc-devs mailing list