[CC field left intact, despite nonexistant Mail-Followup-To]

On Tue, Oct 03, 2000 at 13:52:38 +0000, Steinitz, Dominic J wrote:
> Pointer.lhs:103:
>     Couldn't match `AddrOff' against `Int'
>         Expected type: AddrOff
>         Inferred type: Int
>     In the application `toInt i'
>     In the second argument of `plusAddr', namely `(toInt i)'

`toInt' is a Glasgow Extension and is considered evil now IIRC (it
always was, but there were some efficiency reasons, which are now
resolved...)

`AddrOff' is instance of `Num', so use

        `fromIntegral' 

instead of `toInt'...


Cheers,
M/
-- 
() ASCII ribbon campaign |  Chair for Computer Science  II  | GPG: F65C68CD
/\ against HTML mail     |       RWTH Aachen, Germany       | PGP: 1D0DD0B9
                        "I WAS NOT TOLD TO DO THIS"
                          -- Bart Simpson in 5F13

Reply via email to