How to stop GHC from generating intermediate files?
Posted
by unknown
on Stack Overflow
See other posts from Stack Overflow
or by unknown
Published on 2009-09-11T14:08:07Z
Indexed on
2010/05/13
15:44 UTC
Read the original article
Hit count: 270
When compiling a haskell source file via ghc --make foo.hs
GHC always leaves behind a variety of intermediate files other than foo.exe
. These are foo.hi
and foo.o
.
I often end up having to delete the .hi and .o files to avoid cluttering up the folders.
Is there a command line option for GHC not to leave behind its intermediate files? (When asked on #haskell, the best answer I got was ghc --make foo.hs && rm foo.hi foo.o
.
© Stack Overflow or respective owner