[Haskell-cafe] ByteString typechecking issues....

Galchin, Vasili vigalchin at gmail.com
Sat Dec 27 23:41:31 EST 2008


     I am solely operating based on the type signatures of function .. hence
I picked Data.ByteString.Join :: ByteString -> [ByteString] -> ByteString


On Sat, Dec 27, 2008 at 2:21 PM, Brandon S. Allbery KF8NH <
allbery at ece.cmu.edu> wrote:

> On 2008 Dec 27, at 12:42, Galchin, Vasili wrote:
>  Not in scope: `Data.ByteString.join'
> Why are you trying to use join?  It's not a string function; it's a
> function on lists which accidentally does something useful on normal Strings
> because they're implemented as lists.  ByteStrings aren't lists, so there is
> no useful join, and ghc finds an instantiation of join somewhere else and
> does something unexpected as a result.
> --
> brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
> system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
> electrical and computer engineering, carnegie mellon university    KF8NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081227/d36b6dbd/attachment.htm

More information about the Haskell-Cafe mailing list