New in version 2015.8.0.
Install a cabal package.
A package name in format accepted by cabal-install. See: https://wiki.haskell.org/Cabal-Install
A list of packages names in same format as pkg
The user to run cabal install with
Install package globally instead of locally
Environment variables to set when invoking cabal. Uses the
same env
format as the cmd.run
execution function
CLI Example:
salt '*' cabal.install shellcheck
salt '*' cabal.install shellcheck-0.3.5
List packages matching a search string.
Search string for matching package names
The user to run cabal list with
If True, only return installed packages.
Environment variables to set when invoking cabal. Uses the
same env
format as the cmd.run
execution function
CLI Example:
salt '*' cabal.list
salt '*' cabal.list ShellCheck
Uninstall a cabal package.
The package to uninstall
The user to run ghc-pkg unregister with
Environment variables to set when invoking cabal. Uses the
same env
format as the cmd.run
execution function
CLI Example:
salt '*' cabal.uninstall ShellCheck