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

Updates #30

Merged
merged 4 commits into from
Oct 19, 2016
Merged

Updates #30

merged 4 commits into from
Oct 19, 2016

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Oct 17, 2016

No description provided.

- lower bound: we need condBenchmarks
- upper bound: 1.25 will make e.g. `PackageName` opaque
Use the Cabal own parser, to cope with upcoming cabal-install config
format

    repository hackage.haskell.org
      url: http://hackage.haskell.org/
      -- ...

Also add revision fields, though they are unused (see comments in code).
@@ -108,7 +101,8 @@ addPackage m entry =
case Map.lookup package' m of
Nothing -> go package' version
Just PackInfo { piVersion = oldv } ->
if version > oldv
-- in 01-index.tar there are entries with some version
Copy link
Owner

Choose a reason for hiding this comment

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

s/some/same ?

maxVersion :: PackInfo -> PackInfo -> PackInfo
maxVersion pi1 pi2 = if piVersion pi1 <= piVersion pi2 then pi2 else pi1
Copy link
Owner

Choose a reason for hiding this comment

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

Given that we're not actually doing the comparison on piRevision, is there any purpose to this change?

@phadej
Copy link
Collaborator Author

phadej commented Oct 19, 2016

Forcepushed

@snoyberg snoyberg merged commit 8c29885 into snoyberg:cli Oct 19, 2016
@snoyberg
Copy link
Owner

Thanks!

snoyberg added a commit that referenced this pull request Oct 19, 2016
@phadej phadej deleted the updates branch October 19, 2016 15:43
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

2 participants