Skip to content

Compile with Cabal-3.0 #13

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

Closed
wants to merge 2 commits into from
Closed

Compile with Cabal-3.0 #13

wants to merge 2 commits into from

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Sep 28, 2019

Revision checking doesn't work correctly if there are public multi-lib dependencies.

Revision checking doesn't work correctly if there are public multi-lib dependencies.
@phadej phadej requested a review from hvr September 28, 2019 21:03
@@ -89,17 +89,17 @@ executable hackage-cli
, filepath ^>= 1.4.0.0
, http-io-streams ^>= 0.1.0.0
, io-streams ^>= 1.5.0.1
, lens ^>= 4.17
, lens ^>= 4.17 || ^>=4.18
Copy link
Collaborator

@hvr hvr Oct 1, 2019

Choose a reason for hiding this comment

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

fwiw, I'd be fine to support only a single major version (for libraries not bundled w/ GHC); this is an exe after all

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll keep in mind that for the future

@bgamari
Copy link

bgamari commented Oct 21, 2019

What is preventing this from being merged?

@hvr
Copy link
Collaborator

hvr commented Oct 24, 2019

What is preventing this from being merged?

Mostly a reasonably careful code-review... ;-)

@@ -442,28 +454,30 @@ checkDependencies componentName ds1 ds2 = do

depKind = depTypeName dproxy ++ " dependency"

class (Ord (DepKey d)) => IsDependency d where
class (Ord (DepKey d), Pretty vr, Eq vr) => IsDependency vr d | d -> vr where
Copy link

Choose a reason for hiding this comment

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

Out of curiosity, why a functional dependency here where DepKey is an associated type?

@phadej
Copy link
Collaborator Author

phadej commented Jan 11, 2021

We should backport what's in hackage-server and then migrate to Cabal-3.2 or 3.4.

@phadej phadej closed this Jan 11, 2021
@phadej phadej deleted the ghc-8.8-cabal-3 branch October 10, 2021 12:18
@andreasabel
Copy link
Member

We should backport what's in hackage-server and then migrate to Cabal-3.2 or 3.4.

@phadej, would you have a pointer to what we should port from hackage-server to hackage-cli?

@andreasabel
Copy link
Member

After some hints from @hvr, I discovered that this PR was created by copying over hackage-server/Distribution/Server/Util/CabalRevisions.hs. This is basically a file shared between hackage-server and hackage-cli.

@andreasabel andreasabel restored the ghc-8.8-cabal-3 branch February 15, 2022 16:38
@andreasabel andreasabel reopened this Feb 15, 2022
@andreasabel
Copy link
Member

Updated in

@andreasabel andreasabel deleted the ghc-8.8-cabal-3 branch February 3, 2023 15:16
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.

4 participants