Add missing Monad/Traversable instances to tuples
Ruben Astudillo
ruben.astud at gmail.com
Tue Apr 2 16:38:10 UTC 2019
On 02-04-19 03:16, Ganesh Sittampalam wrote:
> Presumably these would leave us with things like length (2,3,4) = 1 ?
>
> If so I'm a weak -1; it's awful but the ship has already sailed with
> pairs, so maybe consistency beats more "wat" moments.
Exactly, this is specially confusing when the tuple is of different
types `(a,b)`, as common examples with ghci on `(a,a)` will return the
"correct" value for `length`. -1 for me too.
--
-- Ruben
-- PGP: 4EE9 28F7 932E F4AD
More information about the Libraries
mailing list