[GHC] #7261: ghci's :info and :browse break encapsulation
GHC
cvs-ghc at haskell.org
Fri Sep 21 22:02:29 CEST 2012
#7261: ghci's :info and :browse break encapsulation
------------------------------+---------------------------------------------
Reporter: Feuerbach | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Other | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7261>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list