This plugin provides completion for Cabal, a build tool for Haskell. It also provides a function cabal_sandbox_info that prints whether the current working directory is in a sandbox.
cabal_sandbox_info
To use it, add cabal to the plugins array of your zshrc file:
plugins=(... cabal)