Deprecate Foldable for Either

amindfv at amindfv at
Sun Mar 19 00:51:17 UTC 2017

> El 18 mar 2017, a las 16:01, Lana Black <lanablack at> escribió:
>> On 18/03/17 19:49, Henning Thielemann wrote:
>>> On Sat, 18 Mar 2017, Carter Schonwald wrote:
>>> for what?
>> A warning if someone e.g. calls 'length (a,b)', or more generally, if
>> certain instances are used.
>> _______________________________________________
>> Libraries mailing list
>> Libraries at
> Please no. Many of us like our code Wall-clean while still being able to
> write polymorphic functions. Adding more warnings that are often
> triggered by correct code (redundant constraints, anyone?) only leads to
> more headache.
> You could make that an hlint rule on the other hand.

Can it be a hlint rule? It seems quite difficult to predict that "length" will not ever be passed e.g. a 2-tuple in the general case, within hlint.

I would also favor a warning, and happily have -Wall not include it (though I'd prefer inclusion).


> _______________________________________________
> Libraries mailing list
> Libraries at

More information about the Libraries mailing list