On Thu, Sep 12, 2013 at 09:21:20AM -0400, Scott Lawrence wrote:
> Something's always bothered me about map and zipWith for ByteString. Why is it
> 
>     map :: (Word8 -> Word8) -> ByteString -> ByteString
> 
> but
> 
>     zipWith :: (Word8 -> Word8 -> a) -> ByteString -> ByteString -> [a]

Well, what if you wanted to zipWith a function of type "Word8 -> Word8 ->
Foo" instead of "Word8 -> Word8 -> Word8"?

Tom

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to