GHCi cannot start
```
GHCi cannot start if started in the standard library
directory.
=========================================
$ pwd
/usr/local/lib/ghc-5.00.2/imports/std
$ ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
5.00.2, For Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
<no file>:0:
failed to load interface for `IO': Module `IO' is
not loaded
<no file>:0: Variable not in scope: `IO.hFlush'
<no file>:0:
failed to load interface for `PrelHandle':
Module `PrelHandle' is not loaded
<no file>:0: Variable not in scope: `PrelHandle.stderr'
ghc-5.00.2: panic! (the `impossible' happened, GHC
version 5.00.2):
interactiveUI:stderr
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
=================================================
It does work in any other directory.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 5.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi cannot start","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"5.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nGHCi cannot start if started in the standard library\ndirectory.\n\n=========================================\n\n$ pwd\n/usr/local/lib/ghc-5.00.2/imports/std \n\n$ ghci\n___ ___ _\n / _ \\ /\\ /\\/ __(_)\n / /_\\// /_/ / / | | GHC Interactive, version\n5.00.2, For Haskell 98.\n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/\n\\____/\\/ /_/\\____/|_| Type :? for help.\n\nLoading package std ... linking ... done.\n\n<no file>:0:\n failed to load interface for `IO': Module `IO' is\nnot loaded\n\n<no file>:0: Variable not in scope: `IO.hFlush'\n\n<no file>:0:\n failed to load interface for `PrelHandle':\n Module `PrelHandle' is not loaded\n\n<no file>:0: Variable not in scope: `PrelHandle.stderr'\nghc-5.00.2: panic! (the `impossible' happened, GHC\nversion 5.00.2):\n interactiveUI:stderr\n\nPlease report it as a compiler bug to\nglasgow-haskell-bugs@haskell.org,\nor http://sourceforge.net/projects/ghc/.\n\n\n=================================================\n\nIt does work in any other directory.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->
issue