Proposal: add 'equating' function to Data.List

Frerich Raabe raabe at froglogic.com
Sat Jul 19 21:35:30 UTC 2014


On 2014-07-18 23:11, Andreas Abel wrote:
> I am not super excited about library functions like
>
>   comparing = (compare `on`)
>   equating  = ((==) `on`)
>
> It is rather knowledge how to use 'on', a programming pattern.

I concur, but at the same time the argument given on this list by Robert 
Dockins' about seven years ago ( 
http://article.gmane.org/gmane.comp.lang.haskell.libraries/5622 ) seems 
compelling, too. Incidentally, the mail is form the thread in which the term 
Fairbairn threshold was coined.

- Frerich



More information about the Libraries mailing list