From 66901ca70551105a6eb05c676b0dded8b1af3bfd Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Sun, 5 Jan 2014 01:23:35 +0400 Subject: Prettify bitfield export list --- src/Data/Torrent/Bitfield.hs | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Data/Torrent/Bitfield.hs b/src/Data/Torrent/Bitfield.hs index d564e353..b14094fb 100644 --- a/src/Data/Torrent/Bitfield.hs +++ b/src/Data/Torrent/Bitfield.hs @@ -18,7 +18,7 @@ -- * Rarest first selection - performed to avoid situation when -- rarest piece is unaccessible. -- --- * _End game_ seletion - performed after a peer has requested all +-- * /End game/ seletion - performed after a peer has requested all -- the subpieces of the content. -- -- Note that BitTorrent applies the strict priority policy for @@ -28,24 +28,38 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RecordWildCards #-} module Data.Torrent.Bitfield - ( PieceIx, PieceCount, Bitfield + ( -- * Bitfield + PieceIx + , PieceCount + , Bitfield -- * Construction - , haveAll, haveNone, have, singleton + , haveAll + , haveNone + , have + , singleton , interval , adjustSize -- * Query + -- ** Cardinality , Data.Torrent.Bitfield.null , Data.Torrent.Bitfield.full - , haveCount, totalCount, completeness - - , member, notMember - , findMin, findMax - + , haveCount + , totalCount + , completeness + + -- ** Membership + , member + , notMember + , findMin + , findMax , isSubsetOf - , Frequency, frequencies, rarest + -- ** Availability + , Frequency + , frequencies + , rarest -- * Combine , union -- cgit v1.2.3