[Haskell-cafe] Crash in Data.ByteString.Lazy.hPut
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Mon Jan 28 17:37:39 EST 2008
On Jan 28, 2008, at 17:33 , Jamie Love wrote:
> Shouldn't haskell pick up that there is no 'mod' for Word8? I
> mean, shouldn't I get a nicer error message?
Hm? mod works fine for Word8, unless you specify a multiple of the
type's bound. I think it's still hard for compilers to catch that
for you (very few compilers I know of will catch even an explicit
divide-by-zero at compile time).
--
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
More information about the Haskell-Cafe
mailing list