[GHC] #95: GHCi :edit command should jump to the the last error

GHC ghc-devs at haskell.org
Wed Jun 11 20:19:02 UTC 2014


#95: GHCi :edit command should jump to the the last error
-------------------------------+-------------------------------------------
        Reporter:              |            Owner:  lortabac
  martijnislief                |           Status:  patch
            Type:  feature     |        Milestone:  ⊥
  request                      |          Version:  None
        Priority:  normal      |         Keywords:
       Component:  GHCi        |     Architecture:  Unknown/Multiple
      Resolution:  None        |       Difficulty:  Easy (less than 1 hour)
Operating System:              |       Blocked By:
  Unknown/Multiple             |  Related Tickets:
 Type of failure:              |
  None/Unknown                 |
       Test Case:              |
        Blocking:              |
-------------------------------+-------------------------------------------

Comment (by lortabac):

 I added a `sameFile` function to check whether two paths point to the same
 file.
 However I can't find any readable alternative to:

 {{{
     curFileErrs <- filterM (\(f, _) -> unpackFS f `sameFile` file) errs
     return $ case curFileErrs of
         (_, line):_ -> " +" ++ show line
         _ -> ""
 }}}

 As far as the test is concerned, I just followed the enumeration in the
 ghci directory, so I called it `prog013`. It would be nice to make it a
 bit more self-descriptive but I have no idea how.

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


More information about the ghc-tickets mailing list