[Haskell-cafe] intercalate and (byte)strings

John Meacham john at repetae.net
Tue Dec 23 21:18:29 EST 2008


On Tue, Dec 23, 2008 at 04:06:38PM +0100, wman wrote:
> Thank you, guys, i somehow got the impression that there has to be some
> meaning to this. It seemed unprobable, but why would anybody write it like
> that if there weren't some reason to it ? ;-)))

My guess is that it was probably to gain compatability between different
ByteString versions. In older versions, the lazy byte string was just a
newtype around a list of bytestrings so you didn't have 'toChunks'. A
hack to get around another hack (CPP). 
        
        John


-- 
John Meacham - ⑆repetae.net⑆john⑈


More information about the Haskell-Cafe mailing list