@@ -56,10 +56,10 @@ if (_k_) < 0 || (_k_) >= (_len_) then error ("Data.Text.Array." ++ (_func_) ++ "
56#if defined(__GLASGOW_HASKELL__)
56#if defined(__GLASGOW_HASKELL__)
57#include "MachDeps.h"
57#include "MachDeps.h"
59−import GHC.Base (ByteArray#, MutableByteArray#, Int(..), indexIntArray#,
59+import GHC.Base (ByteArray#, MutableByteArray#, Int(..),
60− indexWord16Array#, newByteArray#, readIntArray#,
60+ indexWord16Array#, newByteArray#,
61− readWord16Array#, unsafeCoerce#, writeIntArray#,
61+ readWord16Array#, unsafeCoerce#,
62− writeWord16Array#, (+#), (*#))
62+ writeWord16Array#, (*#))
63import GHC.Prim (Int#)
63import GHC.Prim (Int#)
64import GHC.ST (ST(..), runST)
64import GHC.ST (ST(..), runST)
65import GHC.Word (Word16(..))
65import GHC.Word (Word16(..))
@@ -78,7 +78,6 @@ import Hugs.ST (ST(..), runST)
79import Control.Exception (assert)
79import Control.Exception (assert)
80import Data.Typeable (Typeable1(..), Typeable2(..), TyCon, mkTyCon, mkTyConApp)
80import Data.Typeable (Typeable1(..), Typeable2(..), TyCon, mkTyCon, mkTyConApp)
81−import Data.Word (Word16)
82import Prelude hiding (length, read)
81import Prelude hiding (length, read)
84#include "Typeable.h"
83#include "Typeable.h"
@@ -167,7 +166,7 @@ unsafeFreeze :: MArray s e -> ST s (Array e)
167#if defined(__GLASGOW_HASKELL__)
166#if defined(__GLASGOW_HASKELL__)
169wORD16_SCALE :: Int# -> Int#
168wORD16_SCALE :: Int# -> Int#
170−wORD16_SCALE n# = scale# *# n# where I# scale# = SIZEOF_WORD16
169+wORD16_SCALE n# = scale# *# n# where !(I# scale#) = SIZEOF_WORD16
172-- | Create an uninitialized mutable array.
171-- | Create an uninitialized mutable array.
173unsafeNew :: forall s e. Elt e => Int -> ST s (MArray s e)
172unsafeNew :: forall s e. Elt e => Int -> ST s (MArray s e)