2009/7/20 Roel van Dijk <[email protected]>: > I just realised this is already in GHC :-) But does you patch also add > the equivalent for tuple type annotations? > > x :: (String, ) Double > x = ("Pi", ) 3.14159
It doesn't, and indeed it would only work in the special case where your only missing type arguments are on the right (since we lack type-level lambda, we can only accept eta-reduced forms). So it probably wouldn't be worth it - it wouldn't allow you to write anything significantly shorter than the existing form "(,) String". Cheers, Max _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
