Re: [Haskell-cafe] varargs zip
22 Nov
2008
22 Nov
'08
3:42 a.m.
Sean Leather <sean.leather@gmail.com> wrote:
example = zip [1,2::Int] ['a','b'] ["1","b"] :: [(Int,Char,String)]
BTW, I realized that this example also works in yours. You weren't giving enough type annotations.
Yes, exactly. Or in other words, the class definition does not correctly specify the dependencies. That is what I am writing in about -- I don't want clients to 'zip' to be required to put all those type annotations in. -- _jsn
6445
Age (days ago)
6445
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jason Dusek