Skip to content
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

Merged
merged 1 commit into from
Jan 20, 2021
Merged

Allow bytestring-0.11 #8

merged 1 commit into from
Jan 20, 2021

Conversation

Bodigrim
Copy link
Contributor

@Bodigrim Bodigrim commented Dec 12, 2020

This is important, because cryptohash-sha256 is the last thing blocking Cabal from embracing bytestring-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

let bs = PS fp 0 l
#endif
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Bodigrim
Copy link
Contributor Author

@hvr @thoughtpolice ping
Could we have this sorted please? It blocks downstream dependencies, including cabal-install.

@@ -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,
Copy link
Collaborator

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 #-}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞

@hvr hvr merged commit 8091add into haskell-hvr:master Jan 20, 2021
@Bodigrim Bodigrim deleted the bytestring-0.11 branch January 20, 2021 22:28
hvr added a commit that referenced this pull request Jan 20, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants