add map back to Functor
Elliot Cameron
eacameron at gmail.com
Sat Feb 9 13:07:16 UTC 2019
Even with a tool to automate it I know many authors would be very disturbed
by such a huge diff in their code. On larger teams with many active
branches this kind of sweeping change is quite difficult to maneuver.
On Fri, Feb 8, 2019, 4:42 PM Bardur Arantsson <spam at scientician.net wrote:
> On 08/02/2019 19.45, Edward Kmett wrote:
> > If we had a way (say a pragma or other syntactic form) to say that fmap
> > and map were somehow the 'same name' or something and so that defining
> > one was the same as defining the other, so that this tax didn't exist, I
> > could see how we might get there.
> >
>
> +1 for "the way"
>
> Most of these 'migrations' which are mostly syntactic should be
> automatable and really should be *automated* via some sort of tool
> support. I still haven't experienced a language where this sort of thing
> "just works", but IMO gofix and scalafix have sort of the right idea.
>
> (In Haskell we have the luxury of 'only' having to guarantee source
> compatibility.)
>
> If people are worried about having to add CPP sections, then I would
> submit it's very possible to convert diffs (between pre-fix to post-fix)
> to CPP. That, or one can usually create a *-compat library which
> contains the CPP and just use that as a dependency. Ugly, yes, but in
> practical terms it seems to be quite simple.
>
> Regards,
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20190209/d8733140/attachment.html>
More information about the Libraries
mailing list