packages feed

split 0.1.2.2 → 0.1.2.3

raw patch · 3 files changed

+8/−1 lines, 3 filesdep ~base

Dependency ranges changed: base

Files

CHANGES view
@@ -1,3 +1,7 @@+* 0.1.2.3++  - Now builds with GHC 7+ * 0.1.2.2    - Fix typo in documentation (davidL)
Data/List/Split/Internals.hs view
@@ -475,6 +475,7 @@ --   whenever @n@ evenly divides the length of @xs@. splitEvery :: Int -> [e] -> [[e]] splitEvery i ls = map (take i) (build (splitter ls)) where+  splitter :: [e] -> ([e] -> a -> a) -> a -> a   splitter [] _ n = n   splitter l c n  = l `c` splitter (drop i l) c n @@ -492,6 +493,8 @@ --   is total. splitPlaces :: Integral a => [a] -> [e] -> [[e]] splitPlaces is ys = build (splitPlacer is ys) where+  splitPlacer :: forall i b t. Integral i+              => [i] -> [b] -> ([b] -> t -> t) -> t -> t   splitPlacer [] _ _ n      = n   splitPlacer _ [] _ n      = n   splitPlacer (l:ls) xs c n = let (x1, x2) = genericSplitAt l xs
split.cabal view
@@ -1,5 +1,5 @@ Name:                split-Version:             0.1.2.2+Version:             0.1.2.3 Stability:           experimental Description:         Combinator library and utility functions for splitting lists. Homepage:            http://code.haskell.org/~byorgey/code/split