Andrew Martin
Andrew Martin
The implementation UnliftedArray in primitive-unlifted-2.1 penalizes the creation of an uninitialized unlifted array. When shrinking and resizing unlifted arrays, there are primitives that we can use to avoid this. Also,...
This library offers three types for IP addresses: `IPv4`, `IPv6`, and `IP`. Two of these, `IP` and `IPv6`, are the same thing, but `IP` has special provisions for mapped IPv4...
Would you be interested in having a co-maintainer for this library. If so, I'd be interested in helping out.
I'm using `goldenVsString` to check that I correctly encode something to a binary output format (protobuf, but CBOR or anything non-textual would demonstrate this same problem). When the output doesn't...
I think that it used to be formatted, but now it's all messed up.
This is an initial stab at resolving https://github.com/haskell/hsc2hs/issues/19. I'm not sure what I'm supposed to do in `checkValidity` though.
I recently came up with some [custom constructs for `readByteArray`, `writeByteArray`, and `indexByteArray`](https://github.com/andrewthad/posix-api/blob/26bd2c408d672cec988f4d2fc935473f4baceb3a/include/custom.h) while working on `posix-api` and `ping`. These are mostly complete. They are still missing some of cases...
In https://github.com/haskell/primitive/issues/409 it was discovered that @raehik and I had independently developed the same interface (modulo naming) for talking about fixed-endianness elements in a primitive array. The interface looks like...
Before GHC 8.6, there are no primitives for unaligned access to byte arrays. These have now been available for a long time, and I have a typeclass and functions for...