Skip to content

Commit

Permalink
Remove outdated comments on AllocationStrategy
Browse files Browse the repository at this point in the history
(These were not visible in the Haddock output anyway.)
  • Loading branch information
adamgundry committed Sep 19, 2024
1 parent 86a3c35 commit 197bcdc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Data/ByteString/Builder/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,14 +1042,6 @@ maximalCopySize = 2 * L.smallChunkSize
------------------------------------------------------------------------------

-- | A buffer allocation strategy for executing 'Builder's.

-- The strategy
--
-- > 'AllocationStrategy' firstBufSize bufSize trim
--
-- states that the first buffer is of size @firstBufSize@, all following buffers
-- are of size @bufSize@, and a buffer of size @n@ filled with @k@ bytes should
-- be trimmed iff @trim k n@ is 'True'.
data AllocationStrategy = AllocationStrategy
(Maybe (Buffer, Int) -> IO Buffer)
{-# UNPACK #-} !Int
Expand Down

0 comments on commit 197bcdc

Please sign in to comment.