.exe extension missing when compiling a file ending in dot + digits + dot hs
Hi all,
I just encountered this very minor bug on Windows/GHC 6.8.2
When compiling a file that ends in .N.hs where N is a series of digits, the executable is missing the .exe extension.
I can of course workaround the problem by specifying the file name with the -o flag.
Here is a series of test I made to determine when the bug occurs. Look at the Linking ... line that shows the executable name.
C:\Temp\Haskell>ghc --make Test_0.hs
[1 of 1] Compiling Main ( Test_0.hs, Test_0.o )
Linking Test_0.exe ...
C:\Temp\Haskell>ren Test_0.hs Test.0.hs
C:\Temp\Haskell>ghc --make Test.0.hs
[1 of 1] Compiling Main ( Test.0.hs, Test.0.o )
Linking Test.0 ...
C:\Temp\Haskell>ren Test.0.hs Test.012.hs
C:\Temp\Haskell>ghc --make Test.012.hs
[1 of 1] Compiling Main ( Test.012.hs, Test.012.o )
Linking Test.012 ...
Best regards,
Olivier.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | olivier.boudry@gmail.com |
| Operating system | |
| Architecture |