Merge pull request #854 from l984/master

Fix for "ghc-mod doc" when used with stack projects
This commit is contained in:
Daniel Gröber 2016-12-06 13:30:13 +01:00 committed by GitHub
commit 8be4885d86

View File

@ -86,7 +86,7 @@ getPackageDbStack = do
CabalProject ->
getCabalPackageDbStack
(StackProject StackEnv {..}) ->
return $ map PackageDb [seSnapshotPkgDb, seLocalPkgDb]
return $ [GlobalDb, PackageDb seSnapshotPkgDb, PackageDb seLocalPkgDb]
return $ fromMaybe stack mCusPkgStack
getPackageCachePaths :: IOish m => FilePath -> GhcModT m [FilePath]