Skip to content

Honour .buildinfo files in stack ghci #2239

@mboes

Description

@mboes

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions