const: Read-only mutable primitives

[ ffi, library ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <5), bytestring (>=0.10.8 && <0.12), primitive (>=0.7 && <0.8), ptrdiff (<0.1) [details]
License (BSD-2-Clause OR Apache-2.0)
Copyright Copyright (c) 2019-2021 Edward Kmett
Author Edward Kmett
Maintainer Edward Kmett <ekmett@gmail.com>
Category FFI
Home page https://github.com/ekmett/codex/tree/master/const#readme
Source repo head: git clone https://github.com/ekmett/codex(const)
Uploaded by EdwardKmett at 2021-03-24T01:56:35Z
Distributions
Downloads 202 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for const-0

[back to package description]

const

Hackage

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