@@ -558,26 +558,6 @@ toArray :: (MonadIO m, Unbox a) => Stream m (Array a) -> m (Array a)
558558toArray = spliceArraysRealloced
559559-- spliceArrays = _spliceArraysBuffered
560560
561−-- exponentially increasing sizes of the chunks upto the max limit.
562−-- XXX this will be easier to implement with parsers/terminating folds
563−-- With this we should be able to reduce the number of chunks/allocations.
564−-- The reallocation/copy based toArray can also be implemented using this.
565−--
566−{-
567−{-# INLINE toArraysInRange #-}
568−toArraysInRange :: (MonadIO m, Unbox a)
569− => Int -> Int -> Fold m (Array a) b -> Fold m a b
570−toArraysInRange low high (Fold step initial extract) =
571−-}
572−
573−{-
574−-- | Fold the input to a pure buffered stream (List) of arrays.
575−{-# INLINE _toArraysOf #-}
576−_toArraysOf :: (MonadIO m, Unbox a)
577− => Int -> Fold m a (Stream Identity (Array a))
578−_toArraysOf n = FL.groupsOf n (A.writeNF n) FL.toStream
579−-}
580−
581561-------------------------------------------------------------------------------
582562-- Elimination - running element parsers
583563-------------------------------------------------------------------------------