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

#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
participants (1)
-
GHC