[Haskell-cafe] nested function application question

Max Rabkin max.rabkin at gmail.com
Mon Jan 5 13:13:41 EST 2009


2009/1/5 Galchin, Vasili <vigalchin at gmail.com>:
> Hello,
>
>       I have the following:
>
>             B.intercalate $ B.intercalate
>                   ByteString
>                   [ByteString]
>                   [ByteString]
>
>       I get a type error with this. If I  comment out the 2nd B.intercalate
> and the third parameter I get no type errors.

B.intercalate needs a ByteString and a list of ByteStrings. Two
B.intercalates need two ByteStrings and two lists of ByteStrings.

--Max


More information about the Haskell-Cafe mailing list