[GHC] #14788: `error` in GHC internals can disappear by rerunning ghc again
GHC
ghc-devs at haskell.org
Mon Feb 19 23:55:15 UTC 2018
#14788: `error` in GHC internals can disappear by rerunning ghc again
-------------------------------------+-------------------------------------
Reporter: nh2 | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Poor/confusing | Unknown/Multiple
error message | Test Case:
Blocked By: | Blocking:
Related Tickets: #14533 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
> I suggest that ghc either deepseq the string to be written to the .o
file before calling writeFile or equivalent,
That imposes a cost on every compilation. Maybe instead remove any `.o`
file if a panic occurs? That would impose costs only on the panic path.
This would entail noting what files are "in flight", so that the exception
handler can delete them.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14788#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list