Hoogle your cabal file's dependencies. These get turned into +package
flags for hoogle
.
Copy, stick on your path, chmod +x
it.
You should have already installed hoogle
, and generated data for your installed packages.
Then, use it just like hoogle:
$ cd ~/my-project
$ ls *.cabal
kit.cabal
$ cahoogle globDir1
["+base","+glob","+attoparsec","+ansi-terminal","+cabal-file-th","+cmdargs","+containers","+errors","+yaml","+directory","+filepath","+mtl","+process","+unordered-containers","+text","+unix"]
System.FilePath.Glob globDir1 :: Pattern -> FilePath -> IO [FilePath]