Ticket #7261 (new feature request)
ghci's :info and :browse break encapsulation
| Reported by: | Feuerbach | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | GHCi | Version: | 7.6.1 |
| Keywords: | Cc: | roma@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Other | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
In ghci, :info shows representations of abstract data types. I consider this undesirable, since it breaks abstraction and confuses users.
Example:
Prelude> :m +Data.Unique Prelude Data.Unique> :i Unique newtype Unique = Data.Unique.Unique Integer -- Defined in `Data.Unique'
I would expect it to behave in the same way as Haddock does, i.e. just show "data Unique".
Same about the :browse command.
Change History
Note: See
TracTickets for help on using
tickets.
