GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T19:16:46Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/822-keep-tmp-files does not keep all temporary files2019-07-07T19:16:46Zgreenrd-keep-tmp-files does not keep all temporary filesI invoke ghc like this:
```
ghc --make -cpp -pgmLlhs2TeX -optL --pre -pgmPcpphs.compat -keep-tmp-files Functor.lhs
```
However, even with the -keep-tmp-files option enabled, ghc still does not keep the file it references in the error m...I invoke ghc like this:
```
ghc --make -cpp -pgmLlhs2TeX -optL --pre -pgmPcpphs.compat -keep-tmp-files Functor.lhs
```
However, even with the -keep-tmp-files option enabled, ghc still does not keep the file it references in the error message below, which is annoying because it makes it less convenient to debug this error:
```
Chasing modules from: Functor.lhs
Skipping Category ( ./Category.lhs, ./Category.o )
Compiling Functor ( Functor.lhs, Functor.o )
/tmp/ghc16196.lpp:15:0: parse error (possibly incorrect indentation)
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.4.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Driver |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"-keep-tmp-files does not keep all temporary files","status":"New","operating_system":"","component":"Driver","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.4.2","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"I invoke ghc like this:\r\n\r\n\r\n{{{\r\nghc --make -cpp -pgmLlhs2TeX -optL --pre -pgmPcpphs.compat -keep-tmp-files Functor.lhs\r\n}}}\r\n\r\n\r\nHowever, even with the -keep-tmp-files option enabled, ghc still does not keep the file it references in the error message below, which is annoying because it makes it less convenient to debug this error:\r\n\r\n\r\n{{{\r\nChasing modules from: Functor.lhs\r\nSkipping Category ( ./Category.lhs, ./Category.o )\r\nCompiling Functor ( Functor.lhs, Functor.o )\r\n\r\n/tmp/ghc16196.lpp:15:0: parse error (possibly incorrect indentation)\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->6.6.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>