Michael,

Thanks for this. I'll modify my version of HDirect when I get the chance.

It does prompt a question: how does a humble user like myself find out that things 
like toInt shouldn't be used and that the correct approach is to use fromIntegral?

Dominic.




[EMAIL PROTECTED] on 04/10/2000 02:50:00
To:     glasgow-haskell-bugs
cc:     Dominic Steinitz
Paul Barnett
c.ryder
bcc:    
Subject:        Re: New Version of plusAddr and HDirect Conflict

[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




-------------------------------------------------------------------------------------------------
21st century air travel     http://www.britishairways.com

Reply via email to