diff options
Diffstat (limited to 'compiler/GHC.hs')
-rw-r--r-- | compiler/GHC.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC.hs b/compiler/GHC.hs index 5d8b295b95..eef40f6c2b 100644 --- a/compiler/GHC.hs +++ b/compiler/GHC.hs @@ -857,7 +857,7 @@ looks_like_an_input m = isSourceFilename m -- away. Note the asymmetry of FilePath.normalise: -- Linux: p\/q -> p\/q; p\\q -> p\\q -- Windows: p\/q -> p\\q; p\\q -> p\\q --- #12674: Filenames starting with a hypen get normalised from ./-foo.hs +-- #12674: Filenames starting with a hyphen get normalised from ./-foo.hs -- to -foo.hs. We have to re-prepend the current directory. normalise_hyp :: FilePath -> FilePath normalise_hyp fp |