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

Upload packages to hackage #238

Open
knothed opened this issue Jun 21, 2022 · 5 comments
Open

Upload packages to hackage #238

knothed opened this issue Jun 21, 2022 · 5 comments

Comments

@knothed
Copy link
Contributor

knothed commented Jun 21, 2022

Do you plan on releasing a new version and distributing the packages on hackage in the near future? That would allow library authors using these packages to also distribute their libraries on hackage.

@knothed knothed changed the title Upload packages to package Upload packages to hackage Jun 21, 2022
@Ericson2314
Copy link
Collaborator

We'll have to rework the bootstrapping so one can in fact build from hackage (RIP) but then yes we should.

@sgraf812
Copy link
Contributor

sgraf812 commented Aug 29, 2022

So what's an estimate as to when that rework is done? Is it blocked on haskell/cabal#7189? If so, that sounds pretty road blocky.

@andreasabel
Copy link
Member

ATTN: @Ericson2314 @int-index

@int-index
Copy link
Collaborator

int-index commented Feb 3, 2024

I have released happy-2.0 as a set of package candidates. You can test them by adding the following lines to your cabal.project:

packages:
  https://hackage.haskell.org/package/happy-2.0/candidate/happy-2.0.tar.gz
  https://hackage.haskell.org/package/happy-grammar-2.0/candidate/happy-grammar-2.0.tar.gz
  https://hackage.haskell.org/package/happy-tabular-2.0/candidate/happy-tabular-2.0.tar.gz
  https://hackage.haskell.org/package/happy-codegen-common-2.0/candidate/happy-codegen-common-2.0.tar.gz
  https://hackage.haskell.org/package/happy-backend-glr-2.0/candidate/happy-backend-glr-2.0.tar.gz
  https://hackage.haskell.org/package/happy-backend-lalr-2.0/candidate/happy-backend-lalr-2.0.tar.gz
  https://hackage.haskell.org/package/happy-frontend-2.0/candidate/happy-frontend-2.0.tar.gz

And the following line to your .cabal file:

build-tool-depends: happy:happy >= 2.0

This should ensure that your .y files are built with happy-2.0. You can confirm this by using cabal build -v and inspecting the logs to see what happy binary is used to build your .y files.

If I see users confirm that happy-2.0 is working well for them, I will publish the package candidates as normal packages.

@andreasabel
Copy link
Member

@int-index : Could you please also upload the documentation for these candidates?
E.g. I looked at the happy-grammar source and found that it only exposes the Happy.Grammar module, but fails to document it.
I don't think these packages are in a releasable state if they don't make an effort to document.
After all, why split the happy executable into many packages if you do not intend folks to use them? (Maybe you intend them to be used, but then this intention should be expressed by writing docs.)
With happy being just one exectuable, all that was needed to document was the CLI. This will drastically change if you release an API.

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

No branches or pull requests

5 participants