Commit graph

27 commits

Author SHA1 Message Date
Andrew Martin
5fb3bdbeaa Inline pragmas for better LEB encoding perf 2022-04-11 15:49:02 -04:00
Andrew Martin
dde5a9b07d
Support ghc 9.2 and 9.0
Bump upper bound on base. This continues to support GHC 8.10.7.

Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2022-04-08 10:43:40 -04:00
Andrew Martin
ed7a6c283c Add rebuild 2022-02-03 13:27:15 -05:00
Andrew Martin
4f03a98100 Add copyCons for copying small byte sequences with extra byte in front 2022-02-01 00:32:18 -05:00
Eric Demko
def7f05d8b use hackage zigzag 2022-01-31 12:16:12 -05:00
Zankoku Okuno
f16f2120e3
Seven eights encoding
"7/8" encoding in two variants. Smoke tests for 7/8 encoding.

Co-authored-by: Eric Demko <edemko@layer3com.com>
2022-01-31 09:41:05 -05:00
Eric Demko
f5709a8cd2 finish out LEB for 32-bit and signed 32/64 2022-01-24 14:36:21 -05:00
Andrew Martin
ce52044b08 Prepare for release of 0.3.9.0 2021-11-19 15:52:59 -05:00
Zankoku Okuno
fba563dd6b
Byte Template Quasiquoter and classes for builders
Co-authored-by: Eric Demko <edemko@layer3com.com>
Co-authored-by: Andrew Martin <andrew.thaddeus@gmail.com>
2021-09-15 14:57:10 -04:00
Andrew Martin
2e279c62f2 Add cstring# 2021-06-29 14:47:44 -04:00
Andrew Martin
a51dcb65b6 Correct documentation typo. Improve fromBoundedOne. 2021-06-25 13:33:46 -04:00
Andrew Martin
dafb1bb37f Correct the required length for json string building 2021-06-25 12:05:33 -04:00
Andrew Martin
e4ecf54aba Add runByteString for bounded builders 2020-12-18 13:26:26 -05:00
Andrew Martin
57e2c7b777 Fix doubleDec 2020-12-18 13:03:04 -05:00
Andrew Martin
8a1a082b53 Move some of the JSON escape character matches under an appropriate guard 2020-11-06 08:42:51 -05:00
Andrew Martin
0c1b4da583 Add ascii7 and ascii8 2020-10-26 12:30:55 -04:00
Andrew Martin
6098f9bd91 Improve compatibility with primitive again 2020-06-12 15:47:13 -04:00
Andrew Martin
18269df9bb Ensure compat with primitive-0.7.1.0 2020-06-12 15:44:13 -04:00
Andrew Martin
5c2dd94acf Add replicate 2020-06-01 11:28:35 -04:00
Andrew Martin
ce33f2d22b Add newBuilderState and closeBuilderState. Exposed commitDistance. 2020-04-16 11:56:43 -04:00
Andrew Martin
d39c76a65a Add wordLEB128, word64LEB128, integerDec, naturalDec, and word48PaddedLowerHex 2020-04-13 11:29:38 -04:00
Andrew Martin
1908d53a14 Rename library to bytebuild. Use Data.Bytes namespace. 2020-02-27 14:00:35 -05:00
Andrew Martin
71fa47a8ee Move Data.Bytes.Chunks into byteslice 2020-01-15 16:50:24 -05:00
Andrew Martin
10ed08c77d Add length to Data.Bytes.Chunks 2019-12-09 19:35:51 -05:00
Andrew Martin
d66a9e6880 add laws tests for Chunks 2019-10-22 20:50:37 -04:00
Andrew Martin
6359787a02 Add Semigroup and Monoid instances for Chunks 2019-10-18 10:59:03 -04:00
Andrew Martin
8baf4cc369
Switch builder implementation to use chunks (#10)
* switch builder implementation to use chunks
* micro-optimize the conditional for builders of length one
* use fromBoundedOne for ascii chars
2019-10-09 16:30:02 -04:00