Raw bindings to the libspng C library (version 0.7.2).
This package reexports the
Foreign.Storable.Offset
module and implements the Offset
instance for all the datatypes.
Alas Hackage currently does not show this (as per haddock#563).
Caveats of this library:
-
DuplicateRecordFields
(since GHC 9.2 alsoNoFieldSelectors
) are turned on in all modules with datatype definitions, record field names are the same as in the C library.
You should useGHC.Records.getField
or record dot syntax to access datatype fields; -
data
andtype
record fields are replaced withdata_
andtype_
respectively.GHC.Records.HasField
andForeign.Storable.Offset.Offset
instances are defined over both variants;
Some bindings are bound to have errors in them, feel free to report them through Github.