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

Switching to Cabal's new project style #10

Closed
nzhang-zh opened this issue Feb 23, 2019 · 2 comments
Closed

Switching to Cabal's new project style #10

nzhang-zh opened this issue Feb 23, 2019 · 2 comments

Comments

@nzhang-zh
Copy link
Contributor

From Cabal user guide

Nix-style local builds are a new build system implementation inspired by Nix. The Nix-style local build system is commonly called “new-build” for short after the cabal new-* family of commands that control it. However, those names are only temporary until Nix-style local builds become the default. This is expected to happen soon. For those who do not wish to use the new functionality, the classic project style will not be removed immediately, but these legacy commands will require the usage of the v1- prefix as of Cabal 3.0 and will be removed in a future release. For a future-proof way to use these commands in a script or tutorial that anticipates the possibility of another UI paradigm being devised in the future, there are also v2- prefixed versions that will reference the same functionality until such a point as it is completely removed from Cabal.

So to use current classic project style, append v1- prefix to cabal commands. cabal v1-configure, cabal v1-repl cabal v1-build etc

Since this is being removed in the future, consider switching to new project style soon.

@CMCDragonkai
Copy link
Member

Can you try this out with Haskell Demo and submit a PR.

@CMCDragonkai
Copy link
Member

This is now done. All commands are v2-*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants