Skip to content

Commit aa5cd04

Browse files
committed
Haddocks: switch stability from provisional to stable
1 parent 2354a2b commit aa5cd04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+74
-88
lines changed

src/Control/Concurrent/Thread/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
This module provides various helpful utilities for dealing with threads.

src/Data/BinPacking.hs

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2008-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
Tools for packing into bins
@@ -39,10 +39,10 @@ where
3939
import Data.List
4040
import Control.Monad.Error
4141

42-
{- | Potential errors returned as Left values by 'BinPacker' functions.
42+
{- | Potential errors returned as Left values by 'BinPacker' functions.
4343
Calling 'show' on this value will produce a nice error message suitable for
4444
display. -}
45-
data (Num size, Ord size, Show size, Show obj) => BinPackerError size obj =
45+
data (Num size, Ord size, Show size, Show obj) => BinPackerError size obj =
4646
BPTooFewBins [(size, obj)] -- ^ Ran out of bins; attached value is the list of objects that do not fit
4747
| BPSizeTooLarge size (size, obj) -- ^ Bin size1 exceeded by at least the given object and size
4848
| BPOther String -- ^ Other error
@@ -63,13 +63,13 @@ instance (Num size, Ord size, Show size, Show obj) => Error (BinPackerError size
6363
6464
These functions take a list of size of bins. If every bin is the same size,
6565
you can pass @repeat binSize@ to pass an infinite list of bins if the
66-
same size. Any surplus bins will simply be ignored.
66+
same size. Any surplus bins will simply be ignored.
6767
6868
> [size] is the sizes of bins
6969
> [(size, obj)] is the sizes and objects
7070
> result is Either error or results
7171
-}
72-
type BinPacker = forall size obj. (Num size, Ord size, Show size, Show obj) =>
72+
type BinPacker = forall size obj. (Num size, Ord size, Show size, Show obj) =>
7373
[size] -- The sizes of bins
7474
-> [(size, obj)] -- The sizes and objects
7575
-> Either (BinPackerError size obj) [[(size, obj)]] -- Either error or results
@@ -85,7 +85,7 @@ packByOrder _ [] = Right [] -- Ran out of sizes
8585
packByOrder [] remainder = Left (BPTooFewBins remainder)
8686
packByOrder (thisbinsize:otherbins) sizes =
8787
let fillBin _ [] = Right []
88-
fillBin accumsize ((s, o):xs)
88+
fillBin accumsize ((s, o):xs)
8989
| s > thisbinsize = Left $ BPSizeTooLarge thisbinsize (s, o)
9090
| s + accumsize > thisbinsize = Right []
9191
| otherwise = do next <- fillBin (accumsize + s) xs

src/Data/Bits/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable to platforms with rawSystem
1717
1818
Bit-related utilities

src/Data/CSV.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2005-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
Haskell Parsec parsers for comma-separated value (CSV) files.

src/Data/Compression/Inflate.hs

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ as described by RFC 1951.
1919
Copyright : Copyright (C) 2004 Ian Lynagh
2020
SPDX-License-Identifier: BSD-3-Clause
2121
22-
Stability : provisional
22+
Stability : stable
2323
Portability: portable
2424
2525
Inflate algorithm implementation
@@ -363,5 +363,3 @@ make_tree i lcs@((l, c):lcs')
363363
(one_tree, lcs_o) = make_tree (i+1) lcs_z
364364
in (Branch zero_tree one_tree, lcs_o)
365365
| otherwise = error "make_tree: can't happen"
366-
367-

src/Data/Either/Utils.hs

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
Utilities for working with the Either data type
@@ -77,4 +77,3 @@ fromRight _ = error "Data.Either.Utils.fromRight: Left"
7777
fromEither :: Either a a -> a
7878
fromEither (Left a) = a
7979
fromEither (Right a) = a
80-

src/Data/Hash/CRC32/GZip.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
CRC32 checksumming using the GZIP\/PKZIP algorithm as used in both

src/Data/Hash/MD5.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
99
1010
Maintainer : Ian Lynagh <igloo@earth.li>
11-
Stability : provisional
11+
Stability : stable
1212
Portability: portable
1313
1414
Generation of MD5sums

src/Data/List/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
This module provides various helpful utilities for dealing with lists.

src/Data/MIME/Types.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For license and copyright information, see the file LICENSE
1313
Copyright : Copyright (C) 2004-2011 John Goerzen
1414
SPDX-License-Identifier: BSD-3-Clause
1515
16-
Stability : provisional
16+
Stability : stable
1717
Portability: portable
1818
1919
Utilities for guessing MIME types of files.

src/Data/Map/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
This module provides various helpful utilities for dealing with Data.Maps.

src/Data/Maybe/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2005-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
Utilities for working with the Either data type

src/Data/Progress/Meter.hs

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For license and copyright information, see the file LICENSE
1313
Copyright : Copyright (C) 2006-2011 John Goerzen
1414
SPDX-License-Identifier: BSD-3-Clause
1515
16-
Stability : provisional
16+
Stability : stable
1717
Portability: portable
1818
1919
Tool for maintaining a status bar, supporting multiple simultaneous tasks,
@@ -219,5 +219,3 @@ renderMeterR meter =
219219
speed <- getSpeed pts
220220
return $ head (rfunc [floor (speed :: Double)]) ++ u ++
221221
"/s " ++ renderSecs etr
222-
223-

src/Data/Progress/Tracker.hs

+22-23
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2006-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
Tools for tracking the status of a long operation.
1919
20-
Written by John Goerzen, jgoerzen\@complete.org
20+
Written by John Goerzen, jgoerzen\@complete.org
2121
2222
See also "Data.Progress.Meter" -}
2323

@@ -66,7 +66,7 @@ a large task is composed of several individual tasks which may also be
6666
long-running. Downloading many large files over the Internet is a common
6767
example of this.
6868
69-
Any given ProgressTracker can be told about one or more parent trackers.
69+
Any given ProgressTracker can be told about one or more parent trackers.
7070
When the child tracker's status is updated, the parent tracker's status is
7171
also updated in the same manner. Therefore, the progress on each individual
7272
component, as well as the overall progress, can all be kept in sync
@@ -95,7 +95,7 @@ Here is an example use:
9595
-- TYPES
9696
----------------------------------------------------------------------
9797

98-
{- | A function that, when called, yields the current time.
98+
{- | A function that, when called, yields the current time.
9999
The default is 'defaultTimeSource'. -}
100100
type ProgressTimeSource = IO Integer
101101

@@ -112,7 +112,7 @@ callback is running, so the callback will not be able to make changes to it. -}
112112
type ProgressCallback = ProgressStatus -> ProgressStatus -> IO ()
113113

114114
{- | The main progress status record. -}
115-
data ProgressStatus =
115+
data ProgressStatus =
116116
ProgressStatus {completedUnits :: Integer,
117117
totalUnits :: Integer,
118118
startTime :: Integer,
@@ -129,7 +129,7 @@ data ProgressRecord =
129129
newtype Progress = Progress (MVar ProgressRecord)
130130

131131
class ProgressStatuses a b where
132-
{- | Lets you examine the 'ProgressStatus' that is contained
132+
{- | Lets you examine the 'ProgressStatus' that is contained
133133
within a 'Progress' object. You can simply pass
134134
a 'Progress' object and a function to 'withStatus', and
135135
'withStatus' will lock the 'Progress' object (blocking any
@@ -184,7 +184,7 @@ newProgress name total =
184184
timeSource = defaultTimeSource})
185185
[]
186186

187-
{- | Create a new 'Progress' object initialized with the given status and
187+
{- | Create a new 'Progress' object initialized with the given status and
188188
callbacks.
189189
No adjustment to the 'startTime' will be made. If you
190190
want to use the system clock, you can initialize 'startTime' with
@@ -200,7 +200,7 @@ newProgress' news newcb =
200200
{- | Adds an new callback to an existing 'Progress'. The callback will be
201201
called whenever the object's status is updated, except by the call to finishP.
202202
203-
Please note that the Progress object will be locked while the callback is
203+
Please note that the Progress object will be locked while the callback is
204204
running, so the callback will not be able to make any modifications to it.
205205
-}
206206
addCallback :: Progress -> ProgressCallback -> IO ()
@@ -227,42 +227,42 @@ any adjustment in totalUnits to the parents, whose callbacks /will/ be
227227
called.
228228
229229
This ensures that the total expected counts on the parent are always correct.
230-
Without doing this, if, say, a transfer ended earlier than expected, ETA
230+
Without doing this, if, say, a transfer ended earlier than expected, ETA
231231
values on the parent would be off since it would be expecting more data than
232232
actually arrived. -}
233233
finishP :: Progress -> IO ()
234234
finishP (Progress mp) =
235235
modifyMVar_ mp modfunc
236236
where modfunc :: ProgressRecord -> IO ProgressRecord
237237
modfunc oldpr =
238-
do let adjustment = (completedUnits . status $ oldpr)
238+
do let adjustment = (completedUnits . status $ oldpr)
239239
- (totalUnits . status $ oldpr)
240240
callParents oldpr (\x -> incrTotal x adjustment)
241-
return $ oldpr {status = (status oldpr)
241+
return $ oldpr {status = (status oldpr)
242242
{totalUnits = completedUnits . status $ oldpr}}
243243

244244
----------------------------------------------------------------------
245245
-- Updating
246246
----------------------------------------------------------------------
247247
{- | Increment the completed unit count in the 'Progress' object
248248
by the amount given. If the value as given exceeds the total, then
249-
the total will also be raised to match this value so that the
249+
the total will also be raised to match this value so that the
250250
completed count never exceeds the total.
251251
252252
You can decrease the completed unit count by supplying a negative number
253253
here. -}
254254
incrP :: Progress -> Integer -> IO ()
255255
incrP po count = modStatus po statusfunc
256-
where statusfunc s =
256+
where statusfunc s =
257257
s {completedUnits = newcu s,
258258
totalUnits = if newcu s > totalUnits s
259259
then newcu s
260260
else totalUnits s}
261-
newcu s = completedUnits s + count
261+
newcu s = completedUnits s + count
262262

263263
{- | Like 'incrP', but never modify the total. -}
264264
incrP' :: Progress -> Integer -> IO ()
265-
incrP' po count =
265+
incrP' po count =
266266
modStatus po (\s -> s {completedUnits = completedUnits s + count})
267267

268268
{- | Set the completed unit count in the 'Progress' object to the specified
@@ -283,10 +283,10 @@ setP' :: Progress -> Integer -> IO ()
283283
setP' po count = modStatus po (\s -> s {completedUnits = count})
284284

285285
{- | Increment the total unit count in the 'Progress' object by the amount
286-
given. This would rarely be needed, but could be needed in some special cases
286+
given. This would rarely be needed, but could be needed in some special cases
287287
when the total number of units is not known in advance. -}
288288
incrTotal :: Progress -> Integer -> IO ()
289-
incrTotal po count =
289+
incrTotal po count =
290290
modStatus po (\s -> s {totalUnits = totalUnits s + count})
291291

292292
{- | Set the total unit count in the 'Progress' object to the specified
@@ -318,26 +318,26 @@ that it can take either a 'Progress' or a 'ProgressStatus' object, and returns
318318
a number that is valid as any Fractional type, such as a Double, Float, or
319319
Rational. -}
320320
getSpeed :: (ProgressStatuses a (IO b), Fractional b) => a -> IO b
321-
getSpeed po = withStatus po $ \status ->
321+
getSpeed po = withStatus po $ \status ->
322322
do t <- timeSource status
323323
let elapsed = t - (startTime status)
324324
return $ if elapsed == 0
325325
then fromRational 0
326326
else fromRational ((completedUnits status) % elapsed)
327327

328-
{- | Returns the estimated time remaining, in standard time units.
328+
{- | Returns the estimated time remaining, in standard time units.
329329
330330
Returns 0 whenever 'getSpeed' would return 0.
331331
332332
See the comments under 'getSpeed' for information about this function's type
333333
and result. -}
334334
getETR :: (ProgressStatuses a (IO Integer),
335335
ProgressStatuses a (IO Rational)) => a -> IO Integer
336-
getETR po =
336+
getETR po =
337337
do speed <- ((getSpeed po)::IO Rational)
338338
if speed == 0
339339
then return 0
340-
else
340+
else
341341
-- FIXME: potential for a race condition here, but it should
342342
-- be negligible
343343
withStatus po $ \status ->
@@ -376,7 +376,7 @@ modStatus :: Progress -> (ProgressStatus -> ProgressStatus) -> IO ()
376376
modStatus (Progress mp) func =
377377
modifyMVar_ mp modfunc
378378
where modfunc :: ProgressRecord -> IO ProgressRecord
379-
modfunc oldpr =
379+
modfunc oldpr =
380380
do let newpr = oldpr {status = func (status oldpr)}
381381
mapM_ (\x -> x (status oldpr) (status newpr))
382382
(callbacks oldpr)
@@ -394,4 +394,3 @@ modStatus (Progress mp) func =
394394

395395
callParents :: ProgressRecord -> (Progress -> IO ()) -> IO ()
396396
callParents pr func = mapM_ func (parents pr)
397-

src/Data/Quantity.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2006-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
Tools for rendering sizes

src/Data/String/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For license and copyright information, see the file LICENSE
1313
Copyright : Copyright (C) 2004-2011 John Goerzen
1414
SPDX-License-Identifier: BSD-3-Clause
1515
16-
Stability : provisional
16+
Stability : stable
1717
Portability: portable
1818
1919
This module provides various helpful utilities for dealing with strings.

src/Data/Tuple/Utils.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For license and copyright information, see the file LICENSE
1212
Copyright : Copyright (C) 2004-2011 John Goerzen
1313
SPDX-License-Identifier: BSD-3-Clause
1414
15-
Stability : provisional
15+
Stability : stable
1616
Portability: portable
1717
1818
This module provides various helpful utilities for dealing with tuples.

0 commit comments

Comments
 (0)