[GHC] #10101: ghci :e throws exception after type error

GHC ghc-devs at haskell.org
Wed Feb 18 21:58:43 UTC 2015


#10101: ghci :e throws exception after type error
-------------------------------------+-------------------------------------
              Reporter:  diatchki    |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  GHCi        |           Version:  7.11
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  GHCi crash
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 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.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10101>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list