[Haskell-cafe] varargs zip

Jason Dusek jason.dusek at gmail.com
Fri Nov 21 14:42:30 EST 2008

Sean Leather <sean.leather at 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.


More information about the Haskell-Cafe mailing list