#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 _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs