How to list all the installed packages and their version with Cabal?

frmsaul picture frmsaul · Apr 30, 2016 · Viewed 8.8k times · Source

Is there a simple command / option that lets you do that? I could use grep but I wonder if there is a builtin option?

Answer

frmsaul picture frmsaul · Apr 30, 2016

We can simply do:

cabal list --installed