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

Cabal does not recognize swarm as a library. #1964

Open
noahyor opened this issue Jun 19, 2024 · 4 comments · May be fixed by #1965
Open

Cabal does not recognize swarm as a library. #1964

noahyor opened this issue Jun 19, 2024 · 4 comments · May be fixed by #1965
Labels
Bug The observed behaviour is incorrect or unexpected. C-Low Hanging Fruit Ideal issue for new contributors. Z-Meta This issue is about other Swarm issues or infrastructure.

Comments

@noahyor
Copy link
Member

noahyor commented Jun 19, 2024

Can be fixed by adding a blank main library to swarm.cabal.

@noahyor noahyor added the Bug The observed behaviour is incorrect or unexpected. label Jun 19, 2024
@noahyor noahyor linked a pull request Jun 19, 2024 that will close this issue
@noahyor noahyor added C-Low Hanging Fruit Ideal issue for new contributors. Z-Meta This issue is about other Swarm issues or infrastructure. labels Jun 19, 2024
@nitinprakash96
Copy link
Collaborator

Can you elaborate a little what issue you're facing here?

@noahyor
Copy link
Member Author

noahyor commented Jun 19, 2024

I am making a package which depends on swarm (from this git repository, not hackage), and it says it cannot find a module in swarm. I did some googling, and found that there is no "main" library, therefore cabal does not recognize any library for swarm, but can be fixed by adding a blank library stanza with no name.

@noahyor
Copy link
Member Author

noahyor commented Jun 19, 2024

This is what I found: haskell/cabal#6038

@byorgey
Copy link
Member

byorgey commented Jun 19, 2024

That issue is closed, this is the one to look at: haskell/cabal#8095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The observed behaviour is incorrect or unexpected. C-Low Hanging Fruit Ideal issue for new contributors. Z-Meta This issue is about other Swarm issues or infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants