includeDirectories takes care of ".".
This commit is contained in:
parent
f0e191dc98
commit
1212040e3b
@ -71,7 +71,9 @@ cabalBuildDirs = ["dist/build"]
|
||||
includeDirectories :: FilePath -> FilePath -> [FilePath] -> [FilePath]
|
||||
includeDirectories cdir wdir dirs = uniqueAndSort (extdirs ++ [cdir,wdir])
|
||||
where
|
||||
extdirs = map (cdir </>) $ dirs ++ cabalBuildDirs
|
||||
extdirs = map expand $ dirs ++ cabalBuildDirs
|
||||
expand "." = cdir
|
||||
expand subdir = cdir </> subdir
|
||||
|
||||
----------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user