diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-05-20 15:59:54 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-05-20 15:59:54 +0400 |
commit | 3498b67c4dac7850d24df6a70583f5868b5a288e (patch) | |
tree | dfe4b1f9d45016e044577d929f56ba812c980570 /src/Data | |
parent | 6f72996b629562141d72cda1b95af4efb4e2a91e (diff) |
~ Unify export lists.
Diffstat (limited to 'src/Data')
-rw-r--r-- | src/Data/Bitfield.hs | 11 | ||||
-rw-r--r-- | src/Data/Bitfield/Mutable.hs | 16 |
2 files changed, 9 insertions, 18 deletions
diff --git a/src/Data/Bitfield.hs b/src/Data/Bitfield.hs index ac647791..f7240c8a 100644 --- a/src/Data/Bitfield.hs +++ b/src/Data/Bitfield.hs | |||
@@ -18,10 +18,10 @@ module Data.Bitfield | |||
18 | 18 | ||
19 | -- * Construction | 19 | -- * Construction |
20 | , empty, full | 20 | , empty, full |
21 | , toList | ||
22 | , fromByteString, toByteString | ||
23 | 21 | ||
24 | -- * Query | 22 | -- * Query |
23 | , bitfieldByteCount, bitfieldBitCount | ||
24 | |||
25 | , haveCount, completeness | 25 | , haveCount, completeness |
26 | , findMin, findMax | 26 | , findMin, findMax |
27 | , union, intersection, difference, combine | 27 | , union, intersection, difference, combine |
@@ -29,20 +29,21 @@ module Data.Bitfield | |||
29 | 29 | ||
30 | -- * Serialization | 30 | -- * Serialization |
31 | , getBitfield, putBitfield | 31 | , getBitfield, putBitfield |
32 | , bitfieldByteCount, bitfieldBitCount | ||
33 | 32 | ||
33 | -- * Conversion | ||
34 | , toList | ||
35 | , fromByteString, toByteString | ||
34 | 36 | ||
37 | -- * Debug | ||
35 | , aligned, alignLow, alignedZip | 38 | , aligned, alignLow, alignedZip |
36 | ) where | 39 | ) where |
37 | 40 | ||
38 | import Control.Applicative hiding (empty) | 41 | import Control.Applicative hiding (empty) |
39 | import Data.Array.Unboxed | ||
40 | import Data.Bits | 42 | import Data.Bits |
41 | import Data.ByteString (ByteString) | 43 | import Data.ByteString (ByteString) |
42 | import qualified Data.ByteString as B | 44 | import qualified Data.ByteString as B |
43 | import qualified Data.ByteString.Internal as B | 45 | import qualified Data.ByteString.Internal as B |
44 | import Data.List as L hiding (union) | 46 | import Data.List as L hiding (union) |
45 | import Data.Maybe | ||
46 | import Data.Serialize | 47 | import Data.Serialize |
47 | import Data.Word | 48 | import Data.Word |
48 | 49 | ||
diff --git a/src/Data/Bitfield/Mutable.hs b/src/Data/Bitfield/Mutable.hs index 5de84dc8..504c4cd0 100644 --- a/src/Data/Bitfield/Mutable.hs +++ b/src/Data/Bitfield/Mutable.hs | |||
@@ -25,31 +25,21 @@ module Data.Bitfield.Mutable | |||
25 | 25 | ||
26 | -- * Construction | 26 | -- * Construction |
27 | , empty, full | 27 | , empty, full |
28 | , create, releaseIntSet | ||
28 | 29 | ||
29 | -- * Query | 30 | -- * Query |
30 | -- , lookup, member, notMember | 31 | -- , lookup, member, notMember |
31 | -- , size | 32 | -- , size |
32 | , maxSize | 33 | , maxSize |
34 | , lookupUnsafe | ||
33 | 35 | ||
34 | -- * Modification | 36 | -- * Modification |
35 | -- , insert, delete | 37 | -- , insert, delete |
38 | , insertUnsafe, deleteUnsafe | ||
36 | 39 | ||
37 | -- * Conversion | 40 | -- * Conversion |
38 | , fromByteString, toByteString | 41 | , fromByteString, toByteString |
39 | |||
40 | -- * Unsafe operations | ||
41 | -- ** Construction | ||
42 | , create, releaseIntSet | ||
43 | |||
44 | -- ** Modification | ||
45 | , insertUnsafe, deleteUnsafe | ||
46 | |||
47 | -- ** Query | ||
48 | , lookupUnsafe | ||
49 | |||
50 | -- ** Conversion | ||
51 | , fromByteStringUnsafe, toByteStringUnsafe | 42 | , fromByteStringUnsafe, toByteStringUnsafe |
52 | |||
53 | ) where | 43 | ) where |
54 | 44 | ||
55 | import Control.Applicative hiding (empty) | 45 | import Control.Applicative hiding (empty) |