libsodium-bindings 0.0.1.1 → 0.0.2.0
raw patch · 4 files changed
+17/−13 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- README.md +1/−1
- libsodium-bindings.cabal +10/−10
- src/LibSodium/Bindings/Main.hs +2/−2
CHANGELOG.md view
@@ -1,5 +1,9 @@ # CHANGELOG +## 0.0.2.0++* Add secret key Stream [#144](https://github.com/haskell-cryptography/libsodium-bindings/pull/144)+ ## 0.0.1.1 (2024-01-12) * Fix typo in the identifiers of LibSodium.Bindings.Scrypt ([#135](https://github.com/haskell-cryptography/libsodium-bindings/pull/135))
README.md view
@@ -1,4 +1,4 @@-# libsodium-bindings [](https://github.com/haskell-cryptography/libsodium-bindings/actions/workflows/libsodium-bindings.yml) [](https://haskell.org)+# libsodium-bindings [](https://github.com/haskell-cryptography/libsodium-bindings/actions/workflows/ci.yaml) [](https://haskell.org) `libsodium-bindings` exposes a set of FFI bindings from the `libsodium-1.0.18-stable` library. It has no other dependency than `base`, and the documentation is strong enough to stand alone.
libsodium-bindings.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: libsodium-bindings-version: 0.0.1.1+version: 0.0.2.0 category: Cryptography synopsis: FFI bindings to libsodium description:@@ -16,7 +16,7 @@ license: BSD-3-Clause build-type: Simple tested-with:- GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.3+ GHC ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2 || ==9.10.1 extra-source-files: LICENSE@@ -24,12 +24,12 @@ extra-doc-files: CHANGELOG.md -flag use-pkg-config+flag pkg-config description: Use pkg-config to find Libsodium (macOS and linux only). default: False manual: True -flag homebrew-libsodium+flag homebrew description: Use Homebrew version of Libsodium (macOS only). default: False manual: True@@ -43,14 +43,14 @@ ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints- -fhide-source-paths -Wno-unused-do-bind -haddock+ -fhide-source-paths -Wno-unused-do-bind - if (os(osx) && flag(homebrew-libsodium))- include-dirs: /opt/local/include- extra-lib-dirs: /user/local/opt/libsodium/lib+ if (os(osx) && flag(homebrew))+ include-dirs: /opt/local/include /opt/homebrew/include+ extra-lib-dirs: /user/local/opt/libsodium/lib /opt/homebrew/lib - if flag(use-pkg-config)- pkgconfig-depends: libsodium ==1.0.18+ if flag(pkg-config)+ pkgconfig-depends: libsodium >=1.0.18 else extra-libraries: sodium
src/LibSodium/Bindings/Main.hs view
@@ -38,7 +38,7 @@ -- action. Abort with an error message if security-related functionality cannot -- be initialised. This will also indicate failure to the shell, as with 'die'. ----- = Use+-- === Usage: -- -- > main :: IO () -- > main = secureMain doTheThingIActuallyWant@@ -54,7 +54,7 @@ -- | Similar to 'secureMain', but allows responding to a failure of -- initialisation. ----- = Use+-- === Usage: -- -- > main :: IO () -- > main = secureMainWith reportErrorWithLogging doTheThingIActuallyWant