Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

cabal should detect case errors in build-depends: #824

bos opened this Issue May 24, 2012 · 5 comments


None yet
3 participants

bos commented May 24, 2012

(Imported from Trac #834, reported by cmh on 2011-04-22)

for example, with a foo.cabal file containing:

build depends: http >= 4000

Resolving dependencies...
cabal: cannot configure foo-0.0.1. It requires http >=4000
There is no available version of http that satisfies >=4000

The solution is of course to specify HTTP, but the user may be led to believe that there is a version problem, which is confusing.

Perhaps a message such as - "Did you mean package HTTP" - Would be appropriate.


BardurArantsson commented Jun 25, 2015

Seems very complicated for very little gain: Almost all packages of any note use exclusively lowercase these days AFAICT.



phadej commented Jun 25, 2015

IMHO this shouldn't easy to someone to implement who wants to learn about solver


BardurArantsson commented Jun 25, 2015

Are you going to do it?

Rhetorical question: My point is that it hasn't happened in the 4 years since this issue was raised in the original Trac(?). Therefore it isn't likely to happen ever based on the presence of this task in the tracker.


phadej commented Jun 25, 2015

IMHO it's better to have issues open as an idea pool. You never know when new contributor traverses thru the list. It seems there are many new ones lately!

Btw. this issue reminds me about the behaviour that cabal install quickcheck do install QuickCheck. Yet we probably want exact case matches in cabal files, so adding new (ambigious) packages into hackage can't break old ones. This is probably why this issue felt odd.


BardurArantsson commented Jun 25, 2015

No, it's not. Trust me on this. It's nothing but frustration and invisibility for actually important issues. (I don't mean to say that "few issues => more contributors"... but what I can say is that "more issues => fewer contributors"... unless you're extremely popular like Mozilla/Firefox or Facebook/React.)

Btw, I was going to actually contribute some more stuff (hopefully I did at few bits & bobs, still pending PRs), but 500+ issues is not helping anyone.

In this particular case: Nobody's going to think "what a great idea, I must implement that!" when they see this issue. This issue is not in the realm of "great ideas". Revamping and improving the UI/UX completely as @tibbe seems to be going about is a great idea. This is a minor tweak.

I was not aware that "cabal install xxx" actually does case folding. That's incredible -- and somewhat broken in that it's actually invalid if you're running on a case sensitive file system. No changing it now, I suppose.

Still want this closed :)

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