Cabal: Document the version constraint syntax

Created on 10 Jun 2018  路  5Comments  路  Source: haskell/cabal

I was looking for a way to exclude a certain version, and was wondering if there was something like a negation operator. I couldn't find a description of the constraint syntax though.

documentation

All 5 comments

Try foo < x.y.z || foo > x.y.z.

Related: #4919.

Try foo < x.y.z || foo > x.y.z.

Thanks, that's what I ended up using.

A reference would still be great.

Oh, that's what I was looking for! :)

I still can't find it when I use the search term "constraint" in the Read the Docs search.

As most of that section seems to be relevant to other parts of the documentation, like --constraint or build-tool-depends, maybe it should be moved into a separate section "constraint syntax"(?) which can be referenced from the other sections.

Was this page helpful?
0 / 5 - 0 ratings