Foreign.C.TypesISO needs to import Foreign.Storable.
Also added some imports for non-GHC platforms.
import GHC.Show
import GHC.Read
import GHC.Num
+#else
+import Control.Monad
+import Foreign.Ptr
#endif
#include "Dynamic.h"
import Data.Int
import Data.Word
import Data.Dynamic
+import Foreign.Storable
#ifdef __GLASGOW_HASKELL__
import GHC.Base
import GHC.Show
import GHC.Read
import GHC.Num
+#else
+import Control.Monad
+import Foreign.Ptr
#endif
#include "Dynamic.h"
import GHC.Err
import GHC.IOBase
import GHC.Base
-#elif defined(__HUGS__)
+#else
+import Foreign.Ptr
+#endif
+
+#ifdef __HUGS__
import Hugs.Storable
#endif