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

Backpack: unknown package: hole #4908

Closed
ekmett opened this issue Nov 24, 2017 · 5 comments
Closed

Backpack: unknown package: hole #4908

ekmett opened this issue Nov 24, 2017 · 5 comments
Assignees

Comments

@ekmett
Copy link
Member

ekmett commented Nov 24, 2017

When building this package I get this error:

mac:coda/lib/coda-set> cabal new-build
In order, the following will be built (use -v for more details):
 - coda-set-0.0.1 (lib) (first run)
Preprocessing library for coda-set-0.0.1..
Building library instantiated with Elem = <Elem>
for coda-set-0.0.1..
<command line>: unknown package: hole

If I replace the stupidly small Elem signature with a .hs stub the package compiles.

All my other backpack projects build just fine.

@phadej
Copy link
Collaborator

phadej commented Nov 24, 2017

20:58  edwardk what bugs me is i don't see at all how this package is at all different than say, coda-dyck which works just fine
20:59  edwardk its literally the same cabal file with a couple of tweaks

With released 8.2.1 it works, with 8.2.1.20171030 or 8.2.2 it doesn't.

@ekmett
Copy link
Member Author

ekmett commented Nov 24, 2017

I was able to reduce the issue to the (unused) {-# language CPP #-} pragma in Set.Internal.

There appears to be an issue with backpack and CPP in the release candidate.

ekmett added a commit to ekmett/coda that referenced this issue Nov 24, 2017
@int-index
Copy link
Collaborator

The same error triggered by an unused TemplateHaskell pragma, as I reported here #4905 (comment)

@ezyang
Copy link
Contributor

ezyang commented Nov 26, 2017

https://phabricator.haskell.org/D4234 is a patch which should fix this.

@ezyang
Copy link
Contributor

ezyang commented Dec 30, 2017

Fix is in GHC HEAD.

@ezyang ezyang closed this as completed Dec 30, 2017
hvr added a commit to hvr/cabal that referenced this issue Mar 13, 2019
Also tweaks testcase's .cabal metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants