From: Pepe Iborra Date: Sat, 6 Jan 2007 10:07:36 +0000 (+0000) Subject: More informative message in a breakpoint X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=71cc731f9cb2c54b732328ecb8d84747b18f9477 More informative message in a breakpoint --- diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index d6f557d..d18a75c 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -1517,11 +1517,13 @@ doBreakpoint ref_bkptTable s@(Session ref) values _ locMsg b = do printScopeMsg location ids = do unqual <- GHC.getPrintUnqual s printForUser stdout unqual $ - text "Local bindings in scope:" $$ + text "Stopped at a breakpoint in " <> text (stripColumn location) <> + char '.' <+> text "Local bindings in scope:" $$ nest 2 (pprWithCommas showId ids) where showId id = ppr (idName id) <+> dcolon <+> ppr (idType id) + stripColumn = reverse . tail . dropWhile (/= ':') . reverse -- | Give the Id a Global Name, and tidy its type globaliseAndTidy :: Id -> Id