ghc-storable-record 0.0.7
Dependencies: ghc-quickcheck@2.14.3 ghc-semigroups@0.20 ghc-utility-ht@0.0.17 ghc-storablevector@0.2.13.1 ghc-timeit@2.0
Channel: guix
Licenses: Modified BSD
Synopsis: Elegant definition of Storable instances for records
Description:
With this package you can build a Storable instance of a record type from Storable instances of its elements in an elegant way. It does not do any magic, just a bit arithmetic to compute the right offsets, that would be otherwise done manually or by a preprocessor like C2HS. There is no guarantee that the generated memory layout is compatible with that of a corresponding C struct. However, the module generates the smallest layout that is possible with respect to the alignment of the record elements.
Total results: 1