#2248: .exe extension missing when compiling a file ending in dot + digits + dot
hs
------------------------+---------------------------------------------------
    Reporter:  oboudry  |       Owner:          
        Type:  bug      |      Status:  new     
    Priority:  normal   |   Component:  Compiler
     Version:  6.8.2    |    Severity:  minor   
    Keywords:           |    Testcase:          
Architecture:  x86      |          Os:  Windows 
------------------------+---------------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2248>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to