-
Notifications
You must be signed in to change notification settings - Fork 61
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
prefer cabal when there is a cabal.project.{local, freeze} #10
Comments
A configuration file should be specified if the automatic configuration fails. The cabal configuration is ranked below the other configuration options as cabal has the worst support for working out which component you need to start the repl (ie, there's no way to map a filepath to a component). If you use cabal it is likely you have to specify a config file anyway to specify the right component. |
I assume you've seen http://hackage.haskell.org/package/cabal-helper ? |
Yes, |
btw my usecase is for the batch compiler not the repl. I would like to be able to launch tools that have access to ghc-lib (i.e. to see |
I'm confused about this. Admitedly this is not readily available as a single command but it's certainly doable without leaving the land of Haskell. Are there problems beyond this that you can see? |
Yes. The guiding principal behind Anyone can write their own tool using whatever libraries they like and provide a suitable command line interface to query. |
I propose that
cabal-install
be the preferred backend if there is acabal.project.local
orcabal.project.freeze
file, even if there is astack.yaml
, as this implies that the user has taken steps to prefercabal
.Generally it would be good to allow the user to provide an envvar to choose the preference when there is ambiguity. e.g. many simple projects have a
stack.yaml
because somebody requested it. An envvar might just be the simplest option all around instead of getting into complex rules.The text was updated successfully, but these errors were encountered: