-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow bytestring-0.11 #8
Conversation
let bs = PS fp 0 l | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@hvr @thoughtpolice ping |
@@ -92,7 +93,7 @@ module Crypto.Hash.SHA256 | |||
import Data.Bits (xor) | |||
import Data.ByteString (ByteString) | |||
import qualified Data.ByteString as B | |||
import Data.ByteString.Internal (ByteString (PS), create, | |||
import Data.ByteString.Internal (ByteString (..), create, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞
@@ -1,4 +1,5 @@ | |||
{-# LANGUAGE BangPatterns #-} | |||
{-# LANGUAGE CPP #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞
This avoids the use of CPP where possible; the last remaining CPP use-site could in principle be avoided too by using cabal-level conditional compilation but for now we've just reduced the source-code exposed to the CPP phase to a bare minimum. While at it, also fixup the package description and upgrade to cabal-version:2.0 as there's little reason not to in 2021.
This is important, because
cryptohash-sha256
is the last thing blockingCabal
from embracingbytestring-0.11
, as discussed at haskell/cabal#7051. Note that the patch matters only for GHC < 8.0; newer GHCs work fine without any changes except version bump.CC @thoughtpolice, because you are listed as a Hackage maintainer.
Changelog for
bytestring-0.11