-
Notifications
You must be signed in to change notification settings - Fork 711
cabal repl
fails on package with Library and Executable
#4602
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
Comments
This is inconsistent with
And it broke https://github.com/michalrus/intero-nix-shim. 😃 I’ll do a workaround there for the time being. |
I've been having the same issue ever since I installed Cabal v2, and my package does not even have executables. It only has a library and a test-suite. |
A temporary workaround for this problem is to add a flag to your cabal that you can mark the executables as First I added the flag above the targets in my cabal file:
Then I added a conditional for each target that check the flag, like this:
Then before running
Then I could successfully run |
I have the same issue. The commands below work correctly however I cannot run But in
So according to it |
@kapralVV This works:
|
Would be nice to just allow |
@dmjio what do you mean by "only one lib is allowed"? |
@hvr I mean, only one public library is allowed to be defined per package. So when |
@hvr, I suppose |
Note that this restriction will be going away soon (this is what @fgaz's GSoC project is about). |
While this ticket is about the soon to be obsolete We have a related design issue with the semantics of which set of goals an implicit (i.e. w/o any explicit target selectors) This would naturally extend to an implicit |
Nope, but only because it spaced my mind. Fixed now. 👍 |
this breaks haskell-mode yes? |
i have a package containing a library and two executables. I want to run
ghci
with all library modules loaded. But I get:Package tested: http://hackage.haskell.org/package/med-module
As far as i can judge this problem is new in Cabal-2.0.
The text was updated successfully, but these errors were encountered: