luavreis / org-mode-hs

Libraries and tool for parsing Org Mode documents with customizable exporters. 🦄
GNU General Public License v3.0
22 stars 5 forks source link

cabal: Relax constraint on `time` #4

Closed srid closed 2 years ago

srid commented 2 years ago

AFAICT 1.10 is not strictly necessary.

luavreis commented 2 years ago

Great, thanks. Since I'm a cabal newbie, a question: is there a way to figure out the right constraints other than testing versions one by one? The way I set it originally: I printed the versions cabal was using and used >= x.y for a package whose version was x.y.z

srid commented 2 years ago

@lucasvreis I personally try to avoid specifying cabal constraints wherever I can, because those versions are normally managed by Nix. I add constraints only when it becomes known that there is a particular minimum (and/or maximum) version for that library.

The way I set it originally: I printed the versions cabal was using and used >= x.y for a package whose version was x.y.z

That would be too strict, because more often than not your package will work on x.(y-n) anyway. Relaxing the constraints minimizes cabal conflicts like https://github.com/lucasvreis/abacateiro/pull/3#issuecomment-1140277517