[Haskell] how to include GHC/Hugs specific module/function?

Paul L ninegua at gmail.com
Mon Apr 30 12:10:27 EDT 2007

What I'm trying to do is something like below, except that #ifdef doesn't
really work..

import GHC.Prim
unsafePtrEq = reallyUnsafePtrEquality#

#ifdef __HUGS__
import Hugs.IOExts (unsafePtrEq)

Any help is greated appreciated!

Paul Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell/attachments/20070430/7a9bf857/attachment.htm

More information about the Haskell mailing list