haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

support GHC 9.0 #338

Closed amesgen closed 3 years ago

amesgen commented 3 years ago

https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#integer-gmp-11-integer-simple-ghc-bignum-10

These migration notes also suggest to use alternative bindings to gmp to provide the missing functions, e.g. hgmp, but I don't know if this is enough of a motivation w.r.t. the contribution guidelines.

Tested locally with this cabal.project.local:

with-compiler: ghc-9.0.1
source-repository-package
  type: git
  location: https://github.com/andrewthad/hs-memory
  tag: 683b402965e68800337af8f9b237d28be273c0d8

So it depends on a release of memory.

parsonsmatt commented 3 years ago

for reference, the memory issue is documented here: https://github.com/vincenthz/hs-memory/issues/84 with two PRs ready to go to fix it

amesgen commented 3 years ago

This has been fixed in cryptonite-0.29 via b6981a4ea5eb26d283f89489ede2110faa758621 in particular.

parsonsmatt commented 3 years ago

thanks!