Sodium Bindings ![made with Haskell](https://camo.githubusercontent.com/38cf45e9ad8dba916b04ecf3e14811c5031969d4687331811073c2672493b9a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d616465253230696e2d4861736b656c6c2d2532333565353038363f6c6f676f3d6861736b656c6c267374796c653d666c61742d737175617265)
The Haskell Cryptography Group presents its suite of libsodium packages:
Comparison with other libraries
Name |
Nature |
Dependencies |
GHC Support |
libsodium‑bindings |
Low-level FFI bindings |
base |
Starts with 8.10.7 |
sel |
High-level Haskell interface |
base , base16 , bytestring , text text-display , libsodium‑bindings |
Starts with 8.10.7 |
saltine |
Both FFI bindings and high-level interface |
base , bytestring deepseq , text , hashable , profunctors |
Starts with 8.0.2 |
libsodium |
Low-level FFI bindings |
base |
8.6.5 to 8.10.1 |
crypto‑sodium |
High-level Haskell interface |
base , bytestring , random , cereal , libsodium , memory , |
Unclear |
Name |
FFI Convention |
Library Discovery |
libsodium‑bindings |
Recommended capi convention |
pkg-config , homebrew (macOS-only), cabal‑native |
saltine |
Legacy ccall convention |
pkg-config , cabal-native |
libsodium |
Legacy ccall convention |
pkg-config |