bytes icon indicating copy to clipboard operation
bytes copied to clipboard

Serialization primitives that work with both cereal and binary.

Results 4 bytes issues
Sort by recently updated
recently updated
newest added

Currently, `bytes` defines functions to convert from floating-point values to word values (and vice versa) in [`i2d.c`](https://github.com/ekmett/bytes/blob/6dcab34cd12f827bd1f6d7a508c960d87c2452fc/cbits/i2d.c). However, in `base-4.10.0.0` (GHC 8.2) and later, the `GHC.Float` module offers equivalent functionality...

enhancement

The `isolate` function available in both `binary` and `cereal` provides a very useful abstraction. With `isolate`: ```haskell isolate (fromIntegral len) $ case cmd of MCVersion -> MVersion get MCAddr ->...

There are issues with this library and the default encoding of negative `Integer`. Encoding with the `cereal` library: ``` λ :m + Data.Serialize Data.ByteString.Base16 λ let bs = encode (-1...

Something that is nice about having `MonadGet` and `MonadPut` as classes is you can use the same serialization logic for different purposes. For instance, you can create a `MonadPut` instance...