Reorganize Set and IntSet Haddocks. (#531)
authorMatt Renaud <matt@m-renaud.com>
Thu, 8 Feb 2018 18:20:29 +0000 (10:20 -0800)
committerGitHub <noreply@github.com>
Thu, 8 Feb 2018 18:20:29 +0000 (10:20 -0800)
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]

Data/IntSet.hs
Data/Set.hs

index 3409d55..672f16f 100644 (file)
@@ -73,32 +73,37 @@ module Data.IntSet (
 #endif
             , Key
 
-            -- * Operators
-            , (\\)
+            -- * Construction
+            , empty
+            , singleton
+            , fromList
+            , fromAscList
+            , fromDistinctAscList
+
+            -- * Insertion
+            , insert
+
+            -- * Deletion
+            , delete
 
             -- * Query
-            , IS.null
-            , size
             , member
             , notMember
             , lookupLT
             , lookupGT
             , lookupLE
             , lookupGE
+            , IS.null
+            , size
             , isSubsetOf
             , isProperSubsetOf
             , disjoint
 
-            -- * Construction
-            , empty
-            , singleton
-            , insert
-            , delete
-
             -- * Combine
             , union
             , unions
             , difference
+            , (\\)
             , intersection
 
             -- * Filter
@@ -135,13 +140,8 @@ module Data.IntSet (
             -- ** List
             , elems
             , toList
-            , fromList
-
-            -- ** Ordered list
             , toAscList
             , toDescList
-            , fromAscList
-            , fromDistinctAscList
 
             -- * Debugging
             , showTree
index ff07475..7ac907d 100644 (file)
@@ -72,33 +72,40 @@ module Data.Set (
               Set(..)
 #endif
 
-            -- * Operators
-            , (\\)
+            -- * Construction
+            , empty
+            , singleton
+            , fromList
+            , fromAscList
+            , fromDescList
+            , fromDistinctAscList
+            , fromDistinctDescList
+            , powerSet
+
+            -- * Insertion
+            , insert
+
+            -- * Deletion
+            , delete
 
             -- * Query
-            , S.null
-            , size
             , member
             , notMember
             , lookupLT
             , lookupGT
             , lookupLE
             , lookupGE
+            , S.null
+            , size
             , isSubsetOf
             , isProperSubsetOf
             , disjoint
 
-            -- * Construction
-            , empty
-            , singleton
-            , insert
-            , delete
-            , powerSet
-
             -- * Combine
             , union
             , unions
             , difference
+            , (\\)
             , intersection
             , cartesianProduct
             , disjointUnion
@@ -152,15 +159,8 @@ module Data.Set (
             -- ** List
             , elems
             , toList
-            , fromList
-
-            -- ** Ordered list
             , toAscList
             , toDescList
-            , fromAscList
-            , fromDescList
-            , fromDistinctAscList
-            , fromDistinctDescList
 
             -- * Debugging
             , showTree