> OK, the Word module has been fixed in the repository, but not the Int
> module.

Ok, done now.

> Hmmm, looking at the sources, I don't understand the 
> reason why
> the IntXY methods for fromInteger use a case while the corresponding
> methods in Word don't:
> 
> Int.lhs:
> [...]
>   fromInteger (J# s# d#)
>                 = case (integer2Int# s# d#) of { i# -> I8# 
> (intToInt8# i#) }
> [...]
> 
> Word.lhs:
> [...]
>   fromInteger (J# s# d#) = W8# (wordToWord8# (integer2Word# s# d#))
> [...]

No particular reason, the code generated is the same in either case.

Cheers,
        Simon

Reply via email to