Make Prelude's map = fmap (Nikita Volkov)

John Wiegley johnw at fpcomplete.com
Sun Jun 23 07:39:09 CEST 2013


>>>>> Gabriel Gonzalez <gabriel439 at gmail.com> writes:

> I'm in favor of generalizing `map`.  At first I was wary of less monomorphic
> types, but now I've found that it's not that hard to just lie and pretend the
> type is more specialized when teaching.  Plus, `map` is a much nicer name than
> `fmap`.

+1, pending results on how it affects foldr/build fusion.

-- 
John Wiegley
FP Complete                         Haskell tools, training and consulting
http://fpcomplete.com               johnw on #haskell/irc.freenode.net



More information about the Libraries mailing list