Skip to content

Stack init could accept explicit versions #1370

@ndmitchell

Description

@ndmitchell

For my test suite, I run things like hlint through stack init then stack build. At the moment, haskell-src-exts is not correct in the latest lts, so stack init fails. I would like to do:

stack init --resolver "haskell-src-exts-1.17.0"

Whether resolver takes package names, or I use --extra haskell-src-exts-1.17.0 doesn't matter, but it would be nice to init with explicit constraints for when stack otherwise fails.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions