"debug" displyas a root dir.
This commit is contained in:
parent
b40f162979
commit
31ce0999a1
@ -35,7 +35,8 @@ debug opt cradle fileName = do
|
|||||||
void $ initializeFlagsWithCradle opt cradle gopts True
|
void $ initializeFlagsWithCradle opt cradle gopts True
|
||||||
setTargetFiles [fileName]
|
setTargetFiles [fileName]
|
||||||
return [
|
return [
|
||||||
"Current directory: " ++ currentDir
|
"Root directory: " ++ rootDir
|
||||||
|
, "Current directory: " ++ currentDir
|
||||||
, "Cabal file: " ++ cabalFile
|
, "Cabal file: " ++ cabalFile
|
||||||
, "GHC options: " ++ unwords gopts
|
, "GHC options: " ++ unwords gopts
|
||||||
, "Include directories: " ++ unwords incDir
|
, "Include directories: " ++ unwords incDir
|
||||||
@ -44,6 +45,8 @@ debug opt cradle fileName = do
|
|||||||
where
|
where
|
||||||
currentDir = cradleCurrentDir cradle
|
currentDir = cradleCurrentDir cradle
|
||||||
mCabalFile = cradleCabalFile cradle
|
mCabalFile = cradleCabalFile cradle
|
||||||
|
mCabalDir = cradleCabalDir cradle
|
||||||
|
rootDir = fromMaybe currentDir mCabalDir
|
||||||
cabal = isJust mCabalFile
|
cabal = isJust mCabalFile
|
||||||
cabalFile = fromMaybe "" mCabalFile
|
cabalFile = fromMaybe "" mCabalFile
|
||||||
origGopts = ghcOpts opt
|
origGopts = ghcOpts opt
|
||||||
|
Loading…
Reference in New Issue
Block a user