ghc uses C:\TEMP for temporary files, rather than %TEMP

Reuben Thomas rrt at dcs.gla.ac.uk
Fri Aug 17 09:08:38 EDT 2001


> I have my TEMP variable set to C:\WINNT\TEMP (Windows 2000). I do not have a
> C:\TEMP directory. However, when I run ghc on a trivial source file, I get
>
> >ghc -o main main.hs
> ghc: panic! (the `impossible' happened, GHC version 5.01):
>         Failed to open or write code output file C:/TEMP/ghc1644.s
>

Like it says in the instructions, you have to have C:\TEMP. Sorry; this is
hardwired at the moment.

> GHC should use %TEMP (or better, the Win32 GetTempPath() API call) to save
> intermediate files.

That sounds like a good idea. I'll look into it. Despite being the Windows
maintainer, I'm not a Win32 expert.

-- 
http://sc3d.org/rrt/ | aphorism, n.  a wise lie





More information about the Glasgow-haskell-bugs mailing list