Ticket #4015 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

:browse prints record selectors too many times

Reported by: simonpj Owned by:
Priority: normal Milestone: 6.12.3
Component: Compiler Version: 6.12.2
Keywords: Cc: kazu@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: ghci/scripts/T4015 Blocked By:
Blocking: Related Tickets:

Description

Kazu Yamamoto points out that this module

module Test (R(..)) where
data R = R { x :: Char, y :: Int, z :: Float }

when loaded into GHCi 6.12, and ":browse", displays this (yes, all four lines):

data R = R {x :: Char, y :: Int, z :: Float}
data R = R {x :: Char, ...}
data R = R {..., y :: Int, ...}
data R = R {..., z :: Float}

The problem is that GHCi is printing a line for each record selector individually.

Change History

Changed 3 years ago by igloo

  • milestone set to 6.12.3

Changed 3 years ago by simonpj

  • status changed from new to closed
  • testcase set to ghci/scripts/T4015
  • resolution set to fixed

Fixed by

Tue May 25 16:31:26 BST 2010  simonpj@microsoft.com
  * Refactor pretty printing of TyThings to fix Trac #4015

    M ./compiler/main/PprTyThing.hs -72 +73
    M ./ghc/InteractiveUI.hs -3 +6
Note: See TracTickets for help on using tickets.