Skip to content

Revive Stack build#322

Open
philderbeast wants to merge 6 commits into
well-typed:masterfrom
cabalism:fix/stack-build-309
Open

Revive Stack build#322
philderbeast wants to merge 6 commits into
well-typed:masterfrom
cabalism:fix/stack-build-309

Conversation

@philderbeast
Copy link
Copy Markdown
Contributor

Fixes #309. There's no Stackage snapshot for ghc-9.14.1, so set the snapshot via the compiler version and explicitly list all extra dependency versions, pretty much the same list as a cabal freeze would give.

Applies the workaround of renaming the internal dap library, commercialhaskell/stack#6920.

Note

Not tested on Windows.

@alt-romes
Copy link
Copy Markdown
Collaborator

Thanks @philderbeast!
Could you cherry-pick b97bc3a instead of your commit which renames it as dap-internal?

@mpilgrem
Copy link
Copy Markdown
Contributor

To explain the existing approach:

  • a custom 'GHC 9.14.1' snapshot built on top of nightly (with a revised compiler) is somewhat shorter than listing all the non-boot package versions;
  • a distinct project-level configuration file is used for Windows (stack-windows.yaml), because of --enable-executable-dynamic (which is not applicable on Windows); and
  • putting the custom snapshot into its own file (snapshot.yaml) reduces duplication between the Windows and non-Windows project-level configuration files.

@alt-romes
Copy link
Copy Markdown
Collaborator

I think mpilgrem's notes are quite important here ^

He had implemented the original Stack support and is a/the Stack maintainer.

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

Successfully merging this pull request may close these issues.

Installing with stack fails

4 participants