libsodium-bindings
libsodium-bindings copied to clipboard
Bindings to libsodium for Haskell
Currently `libsodium-bindings` won't build on mac when using homebrew because homebrew recently updated the libsodium recipe and now only carries `libsodium-1.0.19`. This fails on any combination of the flags `use-pkg-config`...
Libraries bounds should be updated to support GHC 9.6. This will allow us to use ConstPtr and finally provide `sodiumHex2Bin` and `sodiumBase642Bin`.
[`Sel.Hashing`](https://hackage.haskell.org/package/sel-0.0.1.0/candidate/docs/Sel-Hashing.html) uses a `Maybe HashKey` parameter to `hashByteString`. However this is not fantastic in terms of readability. I'd like to avoid Maybe-blindness by having a sum type like `data KeyParma...
There must be light examples in the header of each modules.
Based on [this GHC issue here](https://gitlab.haskell.org/ghc/ghc/-/issues/15531), we may have trouble if we enforce `capi` _everywhere_. In fact, I've already [run into problems](https://github.com/kozross/cryptography-libsodium/blob/koz/bindings/src/Cryptography/Sodium/Helpers/Binding.hs#L83) with it. [Twice](https://github.com/kozross/cryptography-libsodium/blob/koz/bindings/src/Cryptography/Sodium/Helpers/Binding.hs#L187). While in my linked cases,...
the tests pass with more than `tasty ^>= 1.5`; the package is marked as broken on `nixpkgs` for that reason and I think it should be fine to remove the...