Skip to content

Commit d672a11

Browse files
authored
Merge pull request haskell-unordered-containers#186 from treeowl/keysSet
* Add keysSet * Rearrange modules
2 parents d1ee5e4 + 5e6e5f9 commit d672a11

File tree

7 files changed

+1006
-816
lines changed

7 files changed

+1006
-816
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* Add `HashMap.alterF`.
44

5+
* Add `HashMap.keysSet`.
6+
57
## 0.2.9.0
68

79
* Add `Ord/Ord1/Ord2` instances. (Thanks, Oleg Grenrus)

Data/HashMap/Lazy.hs

+10-5
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ module Data.HashMap.Lazy
3434
, singleton
3535

3636
-- * Basic interface
37-
, HM.null
37+
, null
3838
, size
3939
, member
40-
, HM.lookup
40+
, lookup
4141
, lookupDefault
4242
, (!)
4343
, insert
@@ -56,7 +56,7 @@ module Data.HashMap.Lazy
5656
, unions
5757

5858
-- * Transformations
59-
, HM.map
59+
, map
6060
, mapWithKey
6161
, traverseWithKey
6262

@@ -70,11 +70,11 @@ module Data.HashMap.Lazy
7070
-- * Folds
7171
, foldl'
7272
, foldlWithKey'
73-
, HM.foldr
73+
, foldr
7474
, foldrWithKey
7575

7676
-- * Filter
77-
, HM.filter
77+
, filter
7878
, filterWithKey
7979
, mapMaybe
8080
, mapMaybeWithKey
@@ -87,9 +87,14 @@ module Data.HashMap.Lazy
8787
, toList
8888
, fromList
8989
, fromListWith
90+
91+
-- ** HashSets
92+
, HS.keysSet
9093
) where
9194

9295
import Data.HashMap.Base as HM
96+
import qualified Data.HashSet.Base as HS
97+
import Prelude ()
9398

9499
-- $strictness
95100
--

0 commit comments

Comments
 (0)