ghci :e throws exception after type error
After a type-error on the command line, :e starts throwing an exception. To reproduce:
~/src/ghc/inplace/bin/ghc-stage2 --interactive test.hs
GHCi, version 7.11.20150128: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Main ( test.hs, interpreted )
Ok, modules loaded: Main.
*Main> 1 + ()
<interactive>:2:3:
No instance for (Num ()) arising from a use of ‘+’
In the expression: 1 + ()
In an equation for ‘it’: it = 1 + ()
*Main> :e
*** Exception: <interactive>: canonicalizePath: does not exist (No such file or directory)
*Main>
The contents of test.hs is not important as long as there is a file to edit.
Editing works fine before the type-error on the command line.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | hvr |
| Operating system | |
| Architecture |