haskell/haskell-mode — pull request #34 by veinor (2012-05-02 02:20:13+00:00)
Title: Search modules using cabal-dev's ghc-pkg dump instead of passing args to dump

This patch changes `haskell-session-installed-modules` to use `cabal-dev ghc-pkg dump` if the session is a cabal-dev one instead of passing arguments to `ghc-pkg dump -f`. This works better in the case where `cabal-dev` is actually a shell script that passes a sandbox to the real cabal-dev, which is the setup I have so I can share cabal-dev sandboxes between processes and so I don't have to patch everything I use to be sandbox-location-aware.