Krasimir Angelov wrote:
I can write a manually implementation for tuple of size 1 but I wonder
wheter the generation of such tuples can be avoided. If you have to
pass the (x) tuple to somewhere then you can simply pass the value of
x instead. In addition all pattern matchings for (x) should be
removed.

Cheers,
  Krasimir

Yes, the 1 tuple is entirely redundant, however, given the compiler uses tuples for every other size of dictionary it would be a nuisance to add lots of special case code in the compiler to optimise away the one tuple.


Thanks

Tom
_______________________________________________
Yhc mailing list
[email protected]
http://haskell.org/mailman/listinfo/yhc

Reply via email to