[project @ 2003-07-29 12:03:13 by ross]
[ghc-base.git] / Data / Array / ST.hs
index 6c4b416..4982de8 100644 (file)
@@ -28,15 +28,12 @@ module Data.Array.ST (
 import Prelude
 
 import Data.Array.MArray
-import Data.Array.Base hiding (MArray(..))
+import Data.Array.Base ( STUArray, castSTUArray )
+
+#ifdef __HUGS__
+import Hugs.ST         ( STArray )
+#endif
 
 #ifdef __GLASGOW_HASKELL__
-import GHC.Arr
-import GHC.ST
-
--- | Casts an 'STUArray' with one element type into one with a
--- different element type.  All the elements of the resulting array
--- are undefined (unless you know what you\'re doing...).
-castSTUArray :: STUArray s ix a -> ST s (STUArray s ix b)
-castSTUArray (STUArray l u marr#) = return (STUArray l u marr#)
+import GHC.Arr         ( STArray )
 #endif