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

TypeHash includes package names and so gets invalidated when used with ghci #53

Closed
mgsloan opened this issue Jun 9, 2016 · 0 comments
Closed
Milestone

Comments

@mgsloan
Copy link
Owner

mgsloan commented Jun 9, 2016

The issue is that code loaded into ghci is treated as if it comes from the main package. This can cause unexpected issues! For example, if stack ghci is used to run stack, it will invalidate the binary caches stored by the compiled version.

Another issue is that TypeHash is sensitive to changes in the TH API. For the original usecase, this was fine, but for the usecase in stack, this isn't so good. It means that stack built with ghc-7.8 will invalidate the caches stored by stack built with ghc-7.10. Rather inconvenient!

I have changes in progress addressing both of these, I'm mostly writing this to document the existence of the issue.

One nice side effect of this is that the store instances for TH AST types can get dropped from the package. They add quite a bit to the compile time.

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

1 participant