commercialhaskell / commercialhaskell/stack

Have something like "stack install --use-stack-yaml-from hackage-pkg"?

Open
#2,122 4 comments 0 reactions 0 assignees View on GitHub
type: discuss type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

For situations like https://github.com/commercialhaskell/stack/issues/2039 , where the user does `stack install a-non-stackage-hackage-package`, the issue is that we don't know what package versions to use for things outside our resolver. As discussed in that issue, one way to resolve this is to support a `--solver` flag and create a temporary sandbox for this particular build.

Another approach might be to actually just use the stack.yaml included with the package, if it exists. This
might be a reason to include it by default in sdists: https://github.com/commercialhaskell/stack/issues/2105

This way we can directly tell the user how the package author intended for it to be installed.

Open questions: What about multiple stack files?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.