8
8
-- Copyright : 2010-2012 Johan Tibell
9
9
-- License : BSD-style
10
10
11
- -- Stability : provisional
12
11
-- Portability : portable
13
12
--
13
+ -- = WARNING
14
+ --
15
+ -- This module is considered __internal__.
16
+ --
17
+ -- The Package Versioning Policy __does not apply__.
18
+ --
19
+ -- The contents of this module may change __in any way whatsoever__
20
+ -- and __without any warning__ between minor versions of this package.
21
+ --
22
+ -- Authors importing this module are expected to track development
23
+ -- closely.
24
+ --
25
+ -- = Description
26
+ --
14
27
-- A map from /hashable/ keys to values. A map cannot contain
15
28
-- duplicate keys; each key can map to at most one value. A 'HashMap'
16
29
-- makes no guarantees as to the order of its elements.
23
36
-- Many operations have a average-case complexity of /O(log n)/. The
24
37
-- implementation uses a large base (i.e. 16) so in practice these
25
38
-- operations are constant time.
26
- module Data.HashMap.Strict.Base
39
+ module Data.HashMap.Internal.Strict
27
40
(
28
41
-- * Strictness properties
29
42
-- $strictness
@@ -107,15 +120,15 @@ import qualified Data.List as L
107
120
import Data.Hashable (Hashable )
108
121
import Prelude hiding (map , lookup )
109
122
110
- import qualified Data.HashMap.Array as A
111
- import qualified Data.HashMap.Base as HM
112
- import Data.HashMap.Base hiding (
123
+ import qualified Data.HashMap.Internal. Array as A
124
+ import qualified Data.HashMap.Internal as HM
125
+ import Data.HashMap.Internal hiding (
113
126
alter , alterF , adjust , fromList , fromListWith , fromListWithKey ,
114
127
insert , insertWith ,
115
128
differenceWith , intersectionWith , intersectionWithKey , map , mapWithKey ,
116
129
mapMaybe , mapMaybeWithKey , singleton , update , unionWith , unionWithKey ,
117
130
traverseWithKey )
118
- import Data.HashMap.Unsafe (runST )
131
+ import Data.HashMap.Internal. Unsafe (runST )
119
132
#if MIN_VERSION_base(4,8,0)
120
133
import Data.Functor.Identity
121
134
#endif
@@ -310,7 +323,7 @@ alterF f = \ !k !m ->
310
323
{-# INLINABLE [0] alterF #-}
311
324
312
325
#if MIN_VERSION_base(4,8,0)
313
- -- See notes in Data.HashMap.Base
326
+ -- See notes in Data.HashMap.Internal
314
327
test_bottom :: a
315
328
test_bottom = error " Data.HashMap.alterF internal error: hit test_bottom"
316
329
@@ -322,7 +335,7 @@ impossibleAdjust = error "Data.HashMap.alterF internal error: impossible adjust"
322
335
323
336
{-# RULES
324
337
325
- -- See detailed notes on alterF rules in Data.HashMap.Base .
338
+ -- See detailed notes on alterF rules in Data.HashMap.Internal .
326
339
327
340
"alterFWeird" forall f. alterF f =
328
341
alterFWeird (f Nothing) (f (Just test_bottom)) f
0 commit comments