Handle unset HOME environment variable more gracefully
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 11 Mar 2016 09:44:03 +0000 (10:44 +0100)
committerBen Gamari <ben@smart-cactus.org>
Fri, 11 Mar 2016 12:20:20 +0000 (13:20 +0100)
commit2908ae8dbe8fd69f8c3ac3dab199026dfc250445
tree876e27d90bff300020d63d4691423ef9481abf0a
parente764ede35f5c5b2c41e1670c6a9b831e0a70cd17
Handle unset HOME environment variable more gracefully

Test Plan:
  * Validate
  * try `env -i ghc`
  * try `env -i runghc HelloWorld.hs`

Reviewers: austin

Subscribers: thomie, ezyang

Differential Revision: https://phabricator.haskell.org/D1971

GHC Trac Issues: #11678
compiler/main/DynFlags.hs
compiler/main/Packages.hs
compiler/utils/Maybes.hs