Letting "ghc-mod dumpsym" work on non-cabal directories.

This commit is contained in:
Kazu Yamamoto 2014-08-20 15:31:26 +09:00
parent 607919e815
commit d045001eb7

View File

@ -54,14 +54,14 @@ plainCradle wdir = return Cradle {
cradleCurrentDir = wdir
, cradleRootDir = wdir
, cradleCabalFile = Nothing
, cradlePkgDbStack = [GlobalDb]
, cradlePkgDbStack = [GlobalDb, UserDb]
}
-- Just for testing
findCradleWithoutSandbox :: IO Cradle
findCradleWithoutSandbox = do
cradle <- findCradle
return cradle { cradlePkgDbStack = [GlobalDb]}
return cradle { cradlePkgDbStack = [GlobalDb]} -- FIXME
----------------------------------------------------------------