Commit graph

17 commits

Author SHA1 Message Date
Andrew Martin
ecde041d9d Add wordPaddedDec9 2019-12-30 20:43:36 -05:00
Andrew Martin
2b85e2cb84
Add function for zero-padded decimal encoding of two digit numers 2019-12-30 20:14:15 -05:00
Andrew Martin
ae5d17ce5c Sort imports. Add release date to changelog. 2019-11-20 14:35:49 -05:00
Andrew Martin
00f437f8cc Add big-endian and little-endian parsers for Word128 2019-10-17 11:26:14 -04:00
Andrew Martin
691749e27a Support big-endian and little-endian encoding of 16-bit and 32-bit signed integers 2019-10-10 10:28:01 -04:00
Andrew Martin
3ad5261ff4 Add little-endian encoding functions for Word{16,32,64}. Add machine encoding functions for 64-bit signed int. These just convert it to an unsigned int and call the corresponding encoding function. 2019-10-09 09:48:28 -04:00
Andrew Martin
cd3631e5fd Add a test for a very simple CSV encoding 2019-09-20 09:23:08 -04:00
Andrew Martin
0b6317a4f5 Add a comment documenting the thought process behind encoding Word8s as decimal 2019-09-05 09:10:35 -04:00
Andrew Martin
61871a9ae3 unroll loop in the implementation of word8Dec 2019-09-05 09:10:35 -04:00
Andrew Martin
26421ff05b Improve documentation. Stop exported data constructor from Data.ByteArray.Builder 2019-09-04 20:02:48 -04:00
Andrew Martin
702b4d4bdb Add more variants of hexadecimal encodings 2019-09-04 20:01:47 -04:00
Andrew Martin
071b55568d add decWord for machine-sized words 2019-09-04 14:34:33 -04:00
Andrew Martin
2e8d4279c7 use runByteArrayST instead of runST 2019-09-04 13:40:31 -04:00
Andrew Martin
f62d5ebde8 Add more int-encoding functions 2019-09-04 10:54:12 -04:00
Andrew Martin
7ed17f5b6d add word8 and int 2019-09-04 10:54:12 -04:00
Andrew Martin
a5bbf88e71 Avoid KnownNat constraints in favor of using Arithmetic.Types.Nat 2019-09-03 14:58:03 -04:00
Andrew Martin
2d1ea68261 Remove the word "Small" from module names. Move unsafe functions into modules suffixed with "Unsafe". Write a better IsString instance. Depend on natural-arithmetic. 2019-09-03 14:43:58 -04:00
Renamed from src/Data/ByteArray/Builder/Small/Bounded.hs (Browse further)