Skip to content

Commit 8f33ccb

Browse files
authored
Reorganize Set and IntSet Haddocks. (#531)
This moves the Construction section to the top, puts all "construction like" functions under that heading, and moves Insertion and Deletion under Construction. Also, moves operators out of their own section and into the appropriate section, and moves `member` to the top of the Query section. [ci skip]
1 parent b0bf694 commit 8f33ccb

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

Data/IntSet.hs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,32 +73,37 @@ module Data.IntSet (
7373
#endif
7474
, Key
7575

76-
-- * Operators
77-
, (\\)
76+
-- * Construction
77+
, empty
78+
, singleton
79+
, fromList
80+
, fromAscList
81+
, fromDistinctAscList
82+
83+
-- * Insertion
84+
, insert
85+
86+
-- * Deletion
87+
, delete
7888

7989
-- * Query
80-
, IS.null
81-
, size
8290
, member
8391
, notMember
8492
, lookupLT
8593
, lookupGT
8694
, lookupLE
8795
, lookupGE
96+
, IS.null
97+
, size
8898
, isSubsetOf
8999
, isProperSubsetOf
90100
, disjoint
91101

92-
-- * Construction
93-
, empty
94-
, singleton
95-
, insert
96-
, delete
97-
98102
-- * Combine
99103
, union
100104
, unions
101105
, difference
106+
, (\\)
102107
, intersection
103108

104109
-- * Filter
@@ -135,13 +140,8 @@ module Data.IntSet (
135140
-- ** List
136141
, elems
137142
, toList
138-
, fromList
139-
140-
-- ** Ordered list
141143
, toAscList
142144
, toDescList
143-
, fromAscList
144-
, fromDistinctAscList
145145

146146
-- * Debugging
147147
, showTree

Data/Set.hs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,33 +72,40 @@ module Data.Set (
7272
Set(..)
7373
#endif
7474

75-
-- * Operators
76-
, (\\)
75+
-- * Construction
76+
, empty
77+
, singleton
78+
, fromList
79+
, fromAscList
80+
, fromDescList
81+
, fromDistinctAscList
82+
, fromDistinctDescList
83+
, powerSet
84+
85+
-- * Insertion
86+
, insert
87+
88+
-- * Deletion
89+
, delete
7790

7891
-- * Query
79-
, S.null
80-
, size
8192
, member
8293
, notMember
8394
, lookupLT
8495
, lookupGT
8596
, lookupLE
8697
, lookupGE
98+
, S.null
99+
, size
87100
, isSubsetOf
88101
, isProperSubsetOf
89102
, disjoint
90103

91-
-- * Construction
92-
, empty
93-
, singleton
94-
, insert
95-
, delete
96-
, powerSet
97-
98104
-- * Combine
99105
, union
100106
, unions
101107
, difference
108+
, (\\)
102109
, intersection
103110
, cartesianProduct
104111
, disjointUnion
@@ -152,15 +159,8 @@ module Data.Set (
152159
-- ** List
153160
, elems
154161
, toList
155-
, fromList
156-
157-
-- ** Ordered list
158162
, toAscList
159163
, toDescList
160-
, fromAscList
161-
, fromDescList
162-
, fromDistinctAscList
163-
, fromDistinctDescList
164164

165165
-- * Debugging
166166
, showTree

0 commit comments

Comments
 (0)