Make Prelude's map = fmap

Henning Thielemann lemming at henning-thielemann.de
Mon Jun 24 09:20:34 CEST 2013


On Sun, 23 Jun 2013, Brandon Allbery wrote:

> On Sun, Jun 23, 2013 at 2:20 PM, Nikita Volkov <nikita.y.volkov at gmail.com> wrote:
>       On Jun 23, 2013, at 10:11 PM, Henning Thielemann <lemming at henning-thielemann.de> wrote:
>       > If in future Prelude moves more and more to one most general function that does everything
>       given the right type, then I am really concerning to use NoImplicitPrelude in all my modules and
>       use a custom Prelude or none at all.
> 
> That's exactly what I am doing now and the very existence of a dozen of "prelude" projects on hackage
> suggests that I'm hardly alone in that.
> 
> 
> Except that most of them are making things *more* general, whereas Henning believes polymorphism is evil and
> confusing.

I use 'fmap' a lot myself. I only do not see why to alter Prelude, because 
you can import everything you need from Data.List, Data.Functor and 
friends.



More information about the Libraries mailing list