streaming-commons 0.2.2.3 → 0.2.2.4
raw patch · 3 files changed
+7/−3 lines, 3 files
Files
- ChangeLog.md +4/−0
- Data/Streaming/Text.hs +2/−2
- streaming-commons.cabal +1/−1
ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for streaming-commons +## 0.2.2.4++* Fix docstrings for text 2.0+ ## 0.2.2.3 * Support text 2.0 [#65](https://github.com/fpco/streaming-commons/pull/65)
Data/Streaming/Text.hs view
@@ -415,7 +415,7 @@ beginChunk s0 ps = runST $ do let initLen = B.length ps `div` 2 #if MIN_VERSION_text(2,0,0)- -- | Worst-case scenario: the very first byte finishes a 4-byte UTF8 sequence,+ -- Worst-case scenario: the very first byte finishes a 4-byte UTF8 sequence, -- and other codepoints have 4-byte UTF8 representation as well. -- This gives 4 + (B.length ps - 1), or (for odd B.length) initLen * 2 + 4. marr <- A.new (initLen * 2 + 4) -- of Word8@@ -488,7 +488,7 @@ beginChunk s0 ps = runST $ do let initLen = B.length ps `div` 2 #if MIN_VERSION_text(2,0,0)- -- | Worst-case scenario: the very first byte finishes a 4-byte UTF8 sequence,+ -- Worst-case scenario: the very first byte finishes a 4-byte UTF8 sequence, -- and other codepoints have 4-byte UTF8 representation as well. -- This gives 4 + (B.length ps - 1), or (for odd B.length) initLen * 2 + 4. marr <- A.new (initLen * 2 + 4) -- of Word8
streaming-commons.cabal view
@@ -1,5 +1,5 @@ name: streaming-commons-version: 0.2.2.3+version: 0.2.2.4 synopsis: Common lower-level functions needed by various streaming data libraries description: Provides low-dependency functionality commonly needed by various streaming data libraries, such as conduit and pipes. homepage: https://github.com/fpco/streaming-commons