[Haskell-cafe] Crash in Data.ByteString.Lazy.hPut
Jamie Love
jamie.love at aviarc.com.au
Mon Jan 28 17:33:42 EST 2008
Ah, of course.
Thanks. I removed the hPut and it runs smoothly. I had forgotten that
haskell chooses the types dynamically.
Shouldn't haskell pick up that there is no 'mod' for Word8? I mean,
shouldn't I get a nicer error message?
Don Stewart wrote:
> jamie.love:
>
>> Hi there,
>>
>> Not sure where to raise bugs in hackage libraries, so I'm posting here.
>> If there is a better place, please let me know.
>>
>> The following code crashes with a divide by zero error when using the
>> package 'binary-0.4.'
>>
>>
>
> Oh, hehe. \x -> x `mod` 256 doesn't work if x :: Word8
> That's your bug :)
>
> -- Don
>
>
> ------------------------------------------------------------
>
> This message has been scanned for viruses and dangerous content
> by MailScanner and is believed to be clean.
>
>
>
--
Jamie Love
Senior Consultant
Aviarc Australia
Mobile: +61 400 548 048
------------------------------------------------------------
This message has been scanned for viruses and dangerous content
by MailScanner and is believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080129/baf09eda/attachment.htm
More information about the Haskell-Cafe
mailing list