[project @ 2002-09-04 16:51:33 by ross]
authorross <unknown>
Wed, 4 Sep 2002 16:51:34 +0000 (16:51 +0000)
committerross <unknown>
Wed, 4 Sep 2002 16:51:34 +0000 (16:51 +0000)
Foreign.C.TypesISO needs to import Foreign.Storable.
Also added some imports for non-GHC platforms.

Foreign/C/Types.hs
Foreign/C/TypesISO.hs
Foreign/Storable.hs

index ee9063e..5c69a4f 100644 (file)
@@ -51,6 +51,9 @@ import GHC.Real
 import GHC.Show
 import GHC.Read
 import GHC.Num
+#else
+import Control.Monad
+import Foreign.Ptr
 #endif
 
 #include "Dynamic.h"
index 014c119..ae7c21c 100644 (file)
@@ -31,6 +31,7 @@ import Data.Bits      ( Bits(..) )
 import Data.Int
 import Data.Word
 import Data.Dynamic
+import Foreign.Storable
 
 #ifdef __GLASGOW_HASKELL__
 import GHC.Base
@@ -39,6 +40,9 @@ import GHC.Real
 import GHC.Show
 import GHC.Read
 import GHC.Num
+#else
+import Control.Monad
+import Foreign.Ptr
 #endif
 
 #include "Dynamic.h"
index c218fe8..43fae68 100644 (file)
@@ -46,7 +46,11 @@ import GHC.Float
 import GHC.Err
 import GHC.IOBase
 import GHC.Base
-#elif defined(__HUGS__)
+#else
+import Foreign.Ptr
+#endif
+
+#ifdef __HUGS__
 import Hugs.Storable
 #endif