#14973 closed bug (fixed)

Location in GHCi debugger prompt printed twice when default prompt is used

Reported by: osa1 Owned by:
Priority: normal Milestone: 8.6.1
Component: GHCi Version: 8.5
Keywords: debugger Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D4661
Wiki Page:

Description

(Noticed in #8316)

Test.hs:

foo :: [Int]
foo = [ 1 .. 10 ]

Reproducer:

$ ghc-stage2 --interactive -ignore-dot-ghci Test.hs
GHCi, version 8.5.20180325: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Main             ( Test.hs, interpreted )
Ok, one module loaded.
*Main> :break foo
Breakpoint 0 activated at Test.hs:2:7-14
*Main> foo
Stopped in Main.foo, Test.hs:2:7-14
_result :: [Int] = _
[Test.hs:2:7-14] [Test.hs:2:7-14] *Main>

The [Test.hs:2:7-14] part is repeated. Setting the prompt fixes it:

$ ghc-stage2 --interactive Test.hs -ignore-dot-ghci
GHCi, version 8.5.20180325: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Main             ( Test.hs, interpreted )
Ok, one module loaded.
*Main> :set prompt "> "
> :break foo
Breakpoint 0 activated at Test.hs:2:7-14
> foo
Stopped in Main.foo, Test.hs:2:7-14
_result :: [Int] = _
[Test.hs:2:7-14] >

Change History (8)

comment:2 Changed 19 months ago by bgamari

Differential Rev(s): Phab:D4660
Milestone: 8.6.1
Status: newpatch

comment:3 Changed 19 months ago by Nolan

Differential Rev(s): Phab:D4660Phab:D4661

comment:4 Changed 18 months ago by Ben Gamari <ben@…>

In e408d03b/ghc:

Fix #14973

Reviewers: bgamari

Reviewed By: bgamari

Subscribers: thomie, carter

Differential Revision: https://phabricator.haskell.org/D4661

comment:5 Changed 17 months ago by bgamari

Milestone: 8.6.18.8.1

These won't be addressed in GHC 8.6.

comment:6 Changed 15 months ago by alpmestan

Status: patchmerge

comment:7 Changed 15 months ago by RyanGlScott

Milestone: 8.8.18.6.1

These were marked as merge, but not milestoned properly.

comment:8 Changed 15 months ago by bgamari

Resolution: fixed
Status: mergeclosed

4293a80a is already present in ghc-8.6.

Note: See TracTickets for help on using tickets.