GHC doesn't doesn't clean up the way it should
Simon Marlow
simonmar at microsoft.com
Thu May 6 05:58:33 EDT 2004
On 06 May 2004 10:16, Josef Svenningsson wrote:
>> -----Original Message-----
>> From: Simon Marlow [mailto:simonmar at microsoft.com]
>>
>> Ok, can you provide a sample command line that I can use to reproduce
>> the problem? Maybe you need to provide the preprocessor program too
>> (a perl script will probably do).
>>
>
> OK. I haven't been able to reproduce this with GHC only with GHCi. Any
> pre-processor will do, I've used this one for testing (I don't know
> Perl but Haskell works fine :-):
> \begin{code}
> module Main where
>
> import System
>
> main = do args <- getArgs
> case args of
> [_,infile,outfile] -> do cont <- readFile infile
> writeFile outfile cont
> \end{code}
>
> Here's the command line I use to reproduce to behaviour:
> $ ghci -F -pgmF ./testpp.exe -v HaskellModule.hs
>
> I'm running cygwin as you've probably noticed.
Works fine here. The temp file is deleted when you *exit* GHCi, BTW (it
is cached for future recompilations).
Cheers,
Simon
More information about the Glasgow-haskell-bugs
mailing list