Skip to content

Hackage2nix hackage db#703

Draft
sternenseemann wants to merge 4 commits intomasterfrom
hackage2nix-hackage-db
Draft

Hackage2nix hackage db#703
sternenseemann wants to merge 4 commits intomasterfrom
hackage2nix-hackage-db

Conversation

@sternenseemann
Copy link
Member

No description provided.

This allows dropping the dependency on utf8-string (of the library)
completely since we don't need to be faithful when converting the input
to a String for the sake of the error message (and can just liberally
use the Unicode Replacement Character instead).

simpleParsecBS was added in Cabal 3.4, so we can no longer build
against the GHC 8.10.7 core package version, but we no longer need that
anyway.
We still want to access nonpreferred versions in our parsed DB on
occasion. E.g. cabal2nix cabal://chronologique currently fails because
the package is deprecated and thus no version is preferred.
Now that we no longer filter out nonpreferred versions, users may want
to do this themselves. We expose (for completeness sake and because we
need to compute it anyways) the preferred VersionRange and tag every
version individually for convenience.
Before the recent changes to hackage-db, cabal2nix
cabal://<pkgname> (i.e. no explicit version requested) would never pick
a nonpreferred version. This change restores the old behavior for
packages that have preferred versions available. If none is available,
we keep picking the latest 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.

1 participant