Skip to content

Commit faba70d

Browse files
authored
Merge pull request #581 from IntersectMBO/jeltsch/more-private-haddock-comments
Turn more private API documentation into Haddock comments
2 parents 747f012 + 0c09321 commit faba70d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/Test/Database/LSMTree/Internal/Chunk.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tests = testGroup "Test.Database.LSMTree.Internal.Chunk" $
3838

3939
-- * Properties to test
4040

41-
{-
41+
{-|
4242
Feeds a freshly created baler a sequence of data portions and ends it
4343
afterwards, yielding all output.
4444
-}
@@ -51,7 +51,7 @@ balingOutput minChunkSize food = runST $ do
5151
remnant <- unsafeEndBaler baler
5252
return (commonChunks, remnant)
5353

54-
{-
54+
{-|
5555
Supplies the output of a complete baler run for constructing a property.
5656
5757
The resulting property additionally provides statistics about the lengths of
@@ -127,7 +127,7 @@ prop_remnantChunkIsSmall (MinChunkSize minChunkSize)
127127

128128
-- * Test case generation and shrinking
129129

130-
{-
130+
{-|
131131
The type of minimum chunk sizes.
132132
133133
This type is isomorphic to 'Int' but has a different way of generating test

test/Test/Database/LSMTree/Internal/Vector/Growing.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ appendSegment vec (Replicate count val) = append vec count val
4242

4343
-- ** Vector construction
4444

45-
{-
45+
{-|
4646
Constructs an ordinary vector by creating a growing vector, appending
4747
segments to it, and finally freezing it.
4848
-}
@@ -54,7 +54,7 @@ finalVector initialBufferSize segments = runST $ do
5454
mapM_ (appendSegment vec) segments
5555
freeze vec
5656

57-
{-
57+
{-|
5858
Supplies the final contents of a growing vector for constructing a property.
5959
6060
The resulting property additionally provides information about the
@@ -129,7 +129,7 @@ shrinkSegment (Replicate count val)
129129
shrinkNat :: Int -> [Int]
130130
shrinkNat = shrinkMap getNonNegative NonNegative
131131

132-
{-
132+
{-|
133133
A list of segments to be appended to an initially empty vector. 'Segments a'
134134
is isomorphic to '[Segment a]' but has a special way of generating test
135135
cases, which avoids skewing with respect to buffer size scaling exponents.

0 commit comments

Comments
 (0)