@@ -114,7 +114,7 @@ instance IArray (MArray s) where
114114-- | Create an uninitialized mutable array.
115115new :: forall s. Int -> ST s (MArray s)
116116new n
117− | n < 0 || n .&. highBit /= 0 = error $ "Data.Text.Array.new: size overflow"
117+ | n < 0 || n .&. highBit /= 0 = array_size_error
118118 | otherwise = ST $ \s1# ->
119119 case newByteArray# len# s1# of
120120 (# s2#, marr# #) -> (# s2#, MArray marr#
@@ -126,6 +126,9 @@ new n
126126 highBit = maxBound `xor` (maxBound `shiftR` 1)
127127{-# INLINE new #-}
128128
129+array_size_error :: a
130+array_size_error = error "Data.Text.Array.new: size overflow"
131+
129132-- | Freeze a mutable array. Do not mutate the 'MArray' afterwards!
130133unsafeFreeze :: MArray s -> ST s Array
131134unsafeFreeze MArray{..} = ST $ \s# ->