[GHC] #14950: GHC 8.2.2: GHCi duplicates breakpoint range prompt

#14950: GHC 8.2.2: GHCi duplicates breakpoint range prompt -------------------------------------+------------------------------------- Reporter: lierdakil | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Other Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I think breakpoint range is being printed twice, once as part of prompt, and the second time by itself. To reproduce, create `test.hs` file like this: {{{#!hs module Test where test :: IO () test = putStrLn "Hello, World!" }}} Then run the following GHCi session: {{{ $ ghci test.hs GHCi, version 8.2.2: http://www.haskell.org/ghc/ :? for help [1 of 1] Compiling Test ( test.hs, interpreted ) Ok, one module loaded. *Test> :break test Breakpoint 0 activated at test.hs:4:8-31 *Test> :trace test Stopped in Test.test, test.hs:4:8-31 _result :: IO () = _ [test.hs:4:8-31] [test.hs:4:8-31] *Test> :set prompt "" [test.hs:4:8-31] }}} Notice `[test.hs:4:8-31]` is printed twice, and is even printed when prompt is set to `""`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14950 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14950: GHC 8.2.2: GHCi duplicates breakpoint range prompt -------------------------------------+------------------------------------- Reporter: lierdakil | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.2 Resolution: | Keywords: debugger Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * keywords: => debugger -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14950#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14950: GHC 8.2.2: GHCi duplicates breakpoint range prompt -------------------------------------+------------------------------------- Reporter: lierdakil | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: GHCi | Version: 8.2.2 Resolution: fixed | Keywords: debugger Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * status: new => closed * resolution: => fixed Comment: With GHC 8.2.2 and GHC 8.4.4 I get the same result as @lierdakil above: {{{ roland@goms:~/Projekte/ghctest/T14950$ ghci GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help Prelude> :l T14950.hs [1 of 1] Compiling Test ( T14950.hs, interpreted ) Ok, one module loaded. *Test> :break test Breakpoint 0 activated at T14950.hs:3:8-16 *Test> :trace test Stopped in Test.test, T14950.hs:3:8-16 _result :: IO () = _ [T14950.hs:3:8-16] [T14950.hs:3:8-16] *Test> }}} However with GHC 8.6.1 and higher (8.6.2 and GHCHEAD-8.7.20181124) there is no more a double prompt: {{{ GHCi, version 8.6.1: http://www.haskell.org/ghc/ :? for help Prelude> :l T14950.hs [1 of 1] Compiling Test ( T14950.hs, interpreted ) Ok, one module loaded. *Test> :break test Breakpoint 0 activated at T14950.hs:3:8-16 *Test> :trace test Stopped in Test.test, T14950.hs:3:8-16 _result :: IO () = _ [T14950.hs:3:8-16] *Test> }}} Hence, this has been fixed! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14950#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC