cborg
cborg copied to clipboard
Binary serialisation in the CBOR format
Fixes the errors reported in #293, adds the `serialise` benchmark components to `hie.yaml`. The `cborg` changes are just naive fixes for type errors and I am not sure how semantically...
With building cborg-0.2.6.0 and 0.2.7.0 with ghc-8.10.7 on i686 (Fedora Rawhide): ``` Building library for cborg-0.2.7.0.. [ 1 of 14] Compiling Codec.CBOR.ByteArray.Internal [ 2 of 14] Compiling Codec.CBOR.ByteArray.Sliced [ 3...
Cabal 2.0 introduced internal libraries which are specified by `library` fields accompanied by a name. The benchmark errors when it sees such a name: https://github.com/well-typed/cborg/blob/c31a1c007a00dc1c393580e7702a9ac6b73b8225/serialise/bench/versus/Macro/Load.hs#L2179 The following is the log...
We should add support. https://datatracker.ietf.org/doc/html/draft-bormann-cbor-notable-tags#section-9 https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml ``` +============+=============+===================================+ | Tags | Data Item | Meaning | +============+=============+===================================+ | 121..127 | any | alternatives 0..6, 1+1 encoding | +------------+-------------+-----------------------------------+ | 1280..1400...
``` $ cabal unpack cborg-0.2.7.0 $ cd cborg-0.2.7.0 $ cabal test -w ghc-9.4.0.20220501 --allow-newer [ 4 of 14] Compiling Codec.CBOR.Decoding src/Codec/CBOR/Decoding.hs:331:19: error: • Couldn't match expected type ‘Int64#’ with actual...
Looks like tag is there, but it's not reachable from `master`? > This commit does not belong to any branch on this repository, and may belong to a fork outside...
This is the tag 24 stuff. This should just be an optimisation. The semantic change is already available as `encodePreEncoded :: B.ByteString -> Encoding` This branch was done some time...
 While, [RFC8948](https://datatracker.ietf.org/doc/html/rfc8949) is also equally named `Concise Binary Object Representation (CBOR)` & published on December 2020. It has a section on changes from the previous RFC: https://datatracker.ietf.org/doc/html/rfc8949#appendix-G It is...
`Codec.CBOR.Term` implements encoding/decoding of lists and maps, but they're not exported, so they can't be used elsewhere. For example, the instance for `Serialise [a]` uses very similar code. It would...
Hi! The current docs section for https://hackage.haskell.org/package/cborg-json-0.2.2.0/docs/Codec-CBOR-JSON.html#v:decodeValue omits mentioning of the effect `lenient` argument has on data decoding. I'd appreciate it if the docs mentioned it in a quick example...