Default name of target executable

Tomasz Zielonka tomasz.zielonka at
Tue Oct 11 01:51:11 EDT 2005

On 10/10/05, Wolfgang Jeltsch <wolfgang at> wrote:
> Am Montag, 10. Oktober 2005 11:55 schrieb Niklas Broberg:
> > [...]
> > Using a shell script is a possible work-around, but certainly not
> > *the* solution. If there is no real reason for ghc to spit out a.out
> > files, then surely choosing the exe name from the main input file
> > would simplify a programmer's life. And for applications that
> > desperately want a.out, well, there's still the -o flag, right?
> Maybe the makers of GHC wanted GHC to be "GCC compatible".

With --make it could be more "make compatible", ie

$ ghc --make Prog

woud be similar to

$ make Prog

Also, ghc --make Prog is not "GCC compatible". Try running 'gcc Prog' when
the source is in Prog.c

Perhaps the new behaviour should be enabled when using Prog without
the .hs suffix.

Best regards

More information about the Glasgow-haskell-users mailing list