runhaskell (and ghc, ghci) fail to run if HOME is not set
Steps to reproduce:
$ env -i ghc
HOME: getAppUserDataDirectory: does not exist (no environment variable)
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
This may be not a big deal for the compiler and repl, but there are use cases to run runhaskell
without HOME, e.g. I encountered this when running a cgi script under Apache. I think that the problem was introduced after 7.8.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |