Description
Read-only mutable primitives.
Description
Read-only mutable primitives.
This can be used for more accurate FFI bindings or simply to indicate more cleanly in your code what you are and aren't allowed to modify.
README.md
const
This package provides a small shim around the data types and operations in Foreign
and Data.Primitive
for emulating const-correctness from a C perspective.
In the future it'd be nice to have a proper const-cast that can handle nested ConstPtr's, etc. but this suffices for my current usecases. Patches welcome!
Contact Information
Contributions and bug reports are welcome!
Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.
-Edward Kmett.