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

cabal new-style builds #112

Open
singpolyma opened this issue Oct 25, 2021 · 1 comment
Open

cabal new-style builds #112

singpolyma opened this issue Oct 25, 2021 · 1 comment

Comments

@singpolyma
Copy link

When using a project with cabal new-style builds, flycheck always prints and error about not being able to find dependencies, since they are not in the global ghc store.

@sergv
Copy link
Contributor

sergv commented Dec 23, 2021

Cabal new-style builds are not very well supported at the moment. As a good alternative I can suggest using dante. It may require a bit more setup but also provides a bit more features (e.g. get type of identifier at point). Ultimately it boils down to using vanilla ghci and calling cabal repl (stack repl, nix-style thing, etc) which works pretty robustly (similar to how this projects attempts to address the "getting warnings out of the compiler" problem). It also has flycheck integration.

Given the existence of strictly more featureful alternatives (e.g. dante, haskell-language-server), with dante being about as complicated to set up as this project, it's probably safe to state that this project is unlikely to get support for new-style builds. It's potentinally possible given enough time but not at all clear whether benefit/cost ratio makes it a good idea.

In any case PRs are welcome.

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

No branches or pull requests

2 participants