You just need to tell hdevtools which package database to use. In my case it looks like this - with cabal-dev it will be a different subfolder in your project but the same idea:
I just add these two options:
-g-no-user-package-conf -g-package-conf.hsenv/ghc_pkg_db