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

Add support for hashable 1.4.1.0 #2449

Merged
merged 1 commit into from Apr 13, 2023
Merged

Add support for hashable 1.4.1.0 #2449

merged 1 commit into from Apr 13, 2023

Conversation

martijnbastiaan
Copy link
Member

@martijnbastiaan martijnbastiaan commented Apr 13, 2023

>=1.4.2.0 support was added in #2448, <1.4.1.0 was already supported.

@martijnbastiaan martijnbastiaan enabled auto-merge (squash) April 13, 2023 08:41
@martijnbastiaan
Copy link
Member Author

Tested locally with:

cabal build clash-lib --with-compiler=ghc-8.10.7 --constraint=hashable==1.4.0.0
cabal build clash-lib --with-compiler=ghc-8.10.7 --constraint=hashable==1.4.1.0
cabal build clash-lib --with-compiler=ghc-8.10.7 --constraint=hashable==1.4.2.0

# Cabal can't find a build plan for GHC 9.2 + hashable==1.4.0.0
# cabal build clash-lib --with-compiler=ghc-9.2.5 --constraint=hashable==1.4.0.0
cabal build clash-lib --with-compiler=ghc-9.2.5 --constraint=hashable==1.4.1.0
cabal build clash-lib --with-compiler=ghc-9.2.5 --constraint=hashable==1.4.2.0

>=1.4.2.0 support was added in #2448, <1.4.1.0 was already supported.
@martijnbastiaan martijnbastiaan merged commit 7e714a5 into master Apr 13, 2023
11 checks passed
@martijnbastiaan martijnbastiaan deleted the hashable-1.4.1.0 branch April 13, 2023 09:37
DigitalBrains1 added a commit that referenced this pull request Apr 28, 2023
PR #2448 and #2449 were incomplete, missing some cases where we still
needed to create an orphan instance for Hashable ByteArray ourselves.
This should get it right, including for when we will support GHC 9.4
(which is guarded by the expression `MIN_VERSION_base(4,17,0)`).
DigitalBrains1 added a commit that referenced this pull request Apr 28, 2023
PR #2448 and #2449 were incomplete, missing some cases where we still
needed to create an orphan instance for `Hashable ByteArray` ourselves.
This should get it right, including for when we will support GHC 9.4
(which is guarded by the expression `MIN_VERSION_base(4,17,0)`).

Fixes #2453
DigitalBrains1 added a commit that referenced this pull request Jun 2, 2023
This is a backport of a combination of PR's #2448, #2449 and #2460.

For some combinations of `hashable` and `primitive`, there is already a
`Hashable ByteArray` instance and we should not create one.
DigitalBrains1 added a commit that referenced this pull request Jun 2, 2023
This is a backport of a combination of PR's #2448, #2449 and #2460.

For some combinations of `hashable` and `primitive`, there is already a
`Hashable ByteArray` instance and we should not create one.
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.

None yet

1 participant