Consistently use CInt rather than Int for FDs
[ghc-base.git] / Foreign / C / Types.hs
index 625c4b3..04a96ab 100644 (file)
@@ -66,11 +66,11 @@ module Foreign.C.Types
 
 #ifndef __NHC__
 
-import Foreign.Storable
+import {-# SOURCE #-} Foreign.Storable
 import Data.Bits       ( Bits(..) )
 import Data.Int                ( Int8,  Int16,  Int32,  Int64  )
 import Data.Word       ( Word8, Word16, Word32, Word64 )
-import Data.Typeable
+import {-# SOURCE #-} Data.Typeable
 
 #ifdef __GLASGOW_HASKELL__
 import GHC.Base
@@ -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"