Skip to content

Commit 126a7d5

Browse files
committed
Remove copyMutableArray#, clean up imports
1 parent 2bf1dd0 commit 126a7d5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Data/HashMap/Array.hs

+1-12
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ import Control.Applicative (liftA2)
6161
import Control.DeepSeq
6262
import GHC.Exts(Int(..), Int#, reallyUnsafePtrEquality#, tagToEnum#, unsafeCoerce#, State#)
6363
import GHC.ST (ST(..))
64-
import Control.Monad.ST (stToIO)
6564

6665
#if __GLASGOW_HASKELL__ >= 709
6766
import Prelude hiding (filter, foldMap, foldr, foldl, length, map, read, traverse)
@@ -73,7 +72,7 @@ import Prelude hiding (filter, foldr, foldl, length, map, read)
7372
import GHC.Exts (SmallArray#, newSmallArray#, readSmallArray#, writeSmallArray#,
7473
indexSmallArray#, unsafeFreezeSmallArray#, unsafeThawSmallArray#,
7574
SmallMutableArray#, sizeofSmallArray#, copySmallArray#, thawSmallArray#,
76-
sizeofSmallMutableArray#, copySmallMutableArray#, cloneSmallMutableArray#)
75+
sizeofSmallMutableArray#, cloneSmallMutableArray#)
7776

7877
#else
7978
import GHC.Exts (Array#, newArray#, readArray#, writeArray#,
@@ -88,7 +87,6 @@ import qualified Prelude
8887
#endif
8988

9089
import Data.HashMap.Unsafe (runST)
91-
import Control.Monad ((>=>))
9290

9391

9492
#if __GLASGOW_HASKELL__ >= 710
@@ -145,15 +143,6 @@ thawArray# = thawSmallArray#
145143

146144
sizeofMutableArray# :: SmallMutableArray# s a -> Int#
147145
sizeofMutableArray# = sizeofSmallMutableArray#
148-
149-
copyMutableArray# :: SmallMutableArray# d a
150-
-> Int#
151-
-> SmallMutableArray# d a
152-
-> Int#
153-
-> Int#
154-
-> State# d
155-
-> State# d
156-
copyMutableArray# = copySmallMutableArray#
157146
#endif
158147

159148
------------------------------------------------------------------------

0 commit comments

Comments
 (0)