haskell-hvr / cryptohash-sha256 Goto Github PK
View Code? Open in Web Editor NEWFast, pure and practical SHA-256 implementation
Home Page: https://hackage.haskell.org/package/cryptohash-sha256
License: Other
Fast, pure and practical SHA-256 implementation
Home Page: https://hackage.haskell.org/package/cryptohash-sha256
License: Other
Not sure if this is a real issue, but cryptohash-sha256 is bound to an ancient version of ByteString.
Are there any good reasons not to port it to something modern? If not, are there any difficulties in porting it to something modern?
Running stack install cryptohash-sha256 --resolver=nightly-2020-09-29 -j1
I get:
C:\Neil>stack install cryptohash-sha256 --resolver=nightly-2020-09-29 -j1
cryptohash-sha256> configure
cryptohash-sha256> Configuring cryptohash-sha256-0.11.101.0...
cryptohash-sha256> Warning: Packages using 'cabal-version: >= 1.10' must specify the
cryptohash-sha256> 'default-language' field for each component (e.g. Haskell98 or Haskell2010).
cryptohash-sha256> If a component uses different languages in different modules then list the
cryptohash-sha256> other ones in the 'other-languages' field.
cryptohash-sha256> build
cryptohash-sha256> Preprocessing library for cryptohash-sha256-0.11.101.0..
cryptohash-sha256> Building library for cryptohash-sha256-0.11.101.0..
cryptohash-sha256> [1 of 2] Compiling Crypto.Hash.SHA256.FFI
cryptohash-sha256> ghc.exe: could not execute: C:/GitLabRunner/builds/2WeHDSFP/0/ghc/ghc/inplace/mingw/bin/ld.exe
-- While building package cryptohash-sha256-0.11.101.0 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.2.0.0_ghc-8.10.2.exe --builddir=.stack-work\dist\a3a5fe88 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
I don't have GitLabRunner on my machine, so I guess its coming from Stack, Stackage or the package in question (and couldn't find it for the package in question).
The latest release excludes base-4.15
. While a bounds bump seems sufficient to make the package compile, it might also be worth looking at other migration issues like https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#withforeignptr.
test-sha256 goes into an infinite loop of
`test-sha256: lost signal due to full pipe: 11`
Aside from that, hackage-security built with this library also fails
Hi, could you please bump the upper bound for base to allow building with ghc-9.6?
Thanks in advance.
Citing from https://hydra.nixos.org/build/75026627:
[...]
Using runghc version 8.2.2 found on system at:
/nix/store/cjp2kan8r0ay1ysldndmqxsxdf6xmca0-ghc-8.2.2/bin/runghc
Using strip version 2.30 found on system at:
/nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
Using tar found on system at:
/nix/store/4bjcimg3pfjgn2s2769qg8pajpybls8h-gnutar-1.30/bin/tar
No uhc found
building
Preprocessing executable 'sha256sum' for cryptohash-sha256-0.11.101.0..
Setup: can't find source for sha256sum in .
When linking against cryptohash-sha256-0.11.100.0 (e.g. when building cabal-install) on OpenBSD, the following error occurs:
/home/maxim/.cabal/lib/x86_64-openbsd-ghc-7.10.3/cryptohash-sha256-0.11.100.0-E5uk2F82S4eJ4LnfTKWM8r/libHScryptohash-sha256-0.11.100.0-E5uk2F82S4eJ4LnfTKWM8r.a(sha256.o): In function `hs_cryptohash_sha256_update':
sha256.c:(.text+0x49a): undefined reference to `__builtin_bswap32'
Looks like __builtin_bswap32 doesn't exist on OpenBSD (but l32toh might be an alternative): http://man.openbsd.org/OpenBSD-5.9/man3/be16toh.3
The current version on Hackage has an (optional?) dependency on cryptohash-sha256-pure
, but no such Haskell package exists on Hackage. Is that intentional?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.