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.

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

Reply via email to