Re: [Haskell-cafe] varargs zip
21 Nov
2008
21 Nov
'08
7:42 p.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
6499
Age (days ago)
6499
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jason Dusek