-
Notifications
You must be signed in to change notification settings - Fork 710
rejecting: QuickCheck-2.15.0.1/installed-e799c2af (package is broken, missing dependency rndm-1.2.1.3-0bdccfc1 #10794
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
Are you doing |
No. Is there documentation that says I should? This used to work reliably. It started to be less reliable with cabal v2. I like to write and run a single file of haskell code. A project seems like overkill. |
No, you should not, I'm just trying to figure out the context. For single-file program you'd be better off using scripts (see online documentation for |
Thanks for the quick response! The doc isn't clear but I assume cabal scripts aren't compiled, i.e. they run interpreted. That can be 50 times or more slower than compiled code as I'm sure you know. I've been using cabal install --lib for over a decade and have never considered it experimental. BTW what is the URL for the cabal 3.14.1 doc? All I could find is the 3.12.1 doc at https://cabal.readthedocs.io/en/stable/ |
Not at all. It's built normally, to an executable.
For a long time it even had a warning about it being experimental. I wish we didn't remove it... But that's not an actionable piece of an advice.
read-the-docs is a bit confusing about it indeed. And also it's confused about 3.14 for some reason in that it doesn't selects it by default I think. You can switch versions using the little menu in the dark selector saying "stable", positioned in the right-bottom corner of the page. Another shot in the darkCould you try to run a variant of your reproducer: $ cd $(mktemp -d)
$ cabal install --lib --package-env=. mwc-random
$ cabal install --lib --package-env=. codeworld-api ( I tried to reproduce it myself, but I had to add
|
Given that @GeorgeCo is able to compile @GeorgeCo I'd strongly suggest to start migration to |
@Bodigrim I wasn't able to compile codeworld-api. I don't understand why you thought I could. wrt single-file scripts , couldn't the compiler or another tool infer what is in the cabal comment and just compile the file for the user without the user having to figure out the appropriate cabal comment? I haven't migrated to cabal run for single file scripts as I have already have enough to learn in Haskell without learning cabal. To understand what to put in the comment I have to read the whole cabal manual to figure out what I need to put in that comment. Also does each single file script have to be in its own directory or can I have several in one directory? I don't think I ended up building QuickCheck against different versions of random but I will try to reproduce the problem using @ulysses4ever instructions and see if I did. I've used packages in Python, pip3 seems similar to cabal. I install packages with pip3. I can use them in code with just an import statement. This is similar to the way I use cabal and Haskell. Why can't Haskell be as simple as Python? My use case is similar to the one described by Richard Eisenberg in #7832:
Gabaz writes in that bug:
Richard replied:
It seems that this issue, a "nice universe for a playground" , is still alive but the current state of cabal install --lib and potential pitfalls are not documented. I think that doing so is important. I don't really understand the history of cabal install --lib. It appears supported but everybody says not to use it. As cabal install --lib is supported I'd like to resolve whether or not I've found a bug. Next I have to try cabal run and single file scripts and possibly file some doc enhancement requests for that (e.g. the simple example in the bug doesn't show how to specify to compile with -O) |
You were able at least to start compiling it despite its version bounds clearly prohibiting GHC 9.12. So something in your environment sets
You can have several in one directory. |
Thanks for your help. Can no longer reproduce: cabal install --lib codeworld-api |
Describe the bug
To Reproduce
Expected behavior
No broken packages or missing dependencies.
System information
MacOS 15.3.1 (Apple Silicon)
The text was updated successfully, but these errors were encountered: