How do you get Cabal to print all available versions of the package?

How do you get Cabal to print all available versions of the package? Execution cabal -v info package-nameprints something like this; if there are several versions:

Versions available: (0.1.5.5), (0.1.5.6), (0.1.6.3), (0.1.6.4), 0.1.6.5,
                    0.2.4.2, 0.2.5.0, 0.2.6.0, 0.2.7.0 (and 26 others)
+6
source share
2 answers

An indirect way to accomplish this, for example. for packagetext

cabal list --simple-output text | awk '$1=="text" { print $2 }'

Post-processing through is awknecessary because it cabal listcurrently only supports a substring, but not an exact match.

+1
source

, , . Hackage ; http://hackage.haskell.org/package/<package-name>. .

+1

All Articles