X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FInteractiveUI.hs;h=d18a75c304a266fe3d6f2ed8289eac2a01288ad3;hb=71cc731f9cb2c54b732328ecb8d84747b18f9477;hp=d6f557dd104b45fa254c92fc0cefc5a37ee17a91;hpb=c78721146b8b2b181e2fccb3a65a366eef85345e;p=ghc-hetmet.git 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