grouped-list 0.2.2.1 → 0.2.3.0
raw patch · 2 files changed
+8/−2 lines, 2 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
+ Data.GroupedList: groupCount :: Grouped a -> Int
Files
- Data/GroupedList.hs +6/−0
- grouped-list.cabal +2/−2
Data/GroupedList.hs view
@@ -20,6 +20,7 @@ , fromGroup -- * Info , length+ , groupCount -- * Indexing , index , adjust@@ -170,6 +171,11 @@ -- | Grouped list with no elements. empty :: Grouped a empty = Grouped S.empty++-- | Return the number of groups in a grouped list. See 'Group'.+-- It should give the same result as @length . groupedGroups@.+groupCount :: Grouped a -> Int+groupCount (Grouped xs) = length xs #if MIN_VERSION_base(4,7,0) -- | Method 'fromList' doesn't work for infinite lists.
grouped-list.cabal view
@@ -1,5 +1,5 @@ name: grouped-list-version: 0.2.2.1+version: 0.2.3.0 synopsis: Grouped lists. Equal consecutive elements are grouped. description: Grouped lists work like regular lists, except for two conditions:@@ -28,7 +28,7 @@ default-language: Haskell2010 exposed-modules: Data.GroupedList build-depends:- base >= 4.8 && < 4.13+ base >= 4.8 && < 4.17 , containers , pointed , deepseq