portable implementation of WordPtr/IntPtr for non-GHC
[ghc-base.git] / Foreign / C / Types.hs
index 625c4b3..7e8c5a3 100644 (file)
@@ -81,8 +81,11 @@ import GHC.Show
 import GHC.Read
 import GHC.Num
 #else
-import Control.Monad
-import Foreign.Ptr
+import Control.Monad   ( liftM )
+#endif
+
+#ifdef __HUGS__
+import Hugs.Ptr                ( castPtr )
 #endif
 
 #include "HsBaseConfig.h"