Hi,
that's the workaround I've been suggesting to others (addrToInt is
not used in the hdirect libraries.)
--sigbjorn
[EMAIL PROTECTED] writes:
>
> I've modified c:\haskelldirect\0.16\hugs-lib\AddrBits.hs by
> commenting out the export of addrToInt. The example in
> examples\math then worked. However, I'm not clear this is the
> right defintion to comment out.
>
> Dominic.
>
> {-# OPTIONS -#include "AddrBitsPrim.h" #-}
> -- Automatically generated by HaskellDirect (ihc), snapshot 080899
> -- Created: 20:12 , Thursday 04 November, 1999
> -- Command line: -fno-qualified-names --hugs -fno-imports
> -fint-is-int -c AddrBits.idl -o AddrBits.hs
>
> module AddrBits
> ( writeInt8OffAddr
> , writeInt16OffAddr
> , writeInt32OffAddr
> , writeStablePtrOffAddr
> , writeCharOffAddr
> , writeWord8OffAddr
> , writeWord16OffAddr
> , writeWord32OffAddr
> , writeDoubleOffAddr
> , writeFloatOffAddr
> , writeAddrOffAddr
> , readInt8OffAddr
> , readInt16OffAddr
> , readStablePtrOffAddr
> , readInt32OffAddr
> , readCharOffAddr
> , readWord8OffAddr
> , readWord16OffAddr
> , readWord32OffAddr
> , readFloatOffAddr
> , readDoubleOffAddr
> , readAddrOffAddr
> , writeForeignObjOffAddr
> , foreignObjToAddr
> , writeI64
> , readI64
> , primMalloc
> , primFree
> , intToAddr
> -- , addrToInt
> ) where
>
>