Proposal #2629: Data.List: Replace nub;
add nubOrd, nubInt, nubWith
Isaac Dupree
isaacdupree at charter.net
Sun Sep 28 17:09:57 EDT 2008
Jeremy Shaw wrote:
> Additionally, I think RULES only take effect if you are compiling with
> optimizations, but not if you just load the files into GHCi. I have
> written programs which run fine with nubOrd but are unacceptable with
> nubEq. So, I would certainly want the option to force the use of
> nubOrd at all times, rather than rely on the compiler to sometimes
> make the required optimization for me.
indeed! Could we provide a function named "nubEq" too, so
that you can be explicit about only requiring (Eq) when
needed, if you want to get rid of all the "deprecated"
(word-ambiguous and aesthetically too enticingly short) uses
of "nub".
-Isaac
More information about the Libraries
mailing list