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

Honour .buildinfo files in stack ghci #2239

Closed
mboes opened this issue Jun 4, 2016 · 0 comments
Closed

Honour .buildinfo files in stack ghci #2239

mboes opened this issue Jun 4, 2016 · 0 comments
Assignees

Comments

@mboes
Copy link
Contributor

mboes commented Jun 4, 2016

A standard set of Setup.hs hooks is autoconfUserHooks. When using these hooks, or any other I suppose, the Setup.hs script is allowed to create a .buildinfo file, whose content will be merged with that of the .cabal file in any subsequent actions, as documented here.

Stack doesn't need to do anything special in the case of stack build, since building is outsourced to the Cabal library, which knows to source the .buildinfo file if present. But stack ghci doesn't use Cabal, so in that case we have to do it ourselves.

An example of package that does this: http://hackage.haskell.org/package/network. It's a package that can't currently be loaded into GHCi due to this issue. See also #1239.

cc @chrisdone.

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

3 participants