
28 Sep
2008
28 Sep
'08
9:09 p.m.
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