[GHC] #2344: oddity with package prefixes for data constructors
GHC
trac at galois.com
Thu Jun 5 07:22:35 EDT 2008
#2344: oddity with package prefixes for data constructors
---------------------+------------------------------------------------------
Reporter: claus | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.9
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
---------------------+------------------------------------------------------
Changes (by simonmar):
* difficulty: => Unknown
Comment:
When you say ':browse M', GHCi pretends you've imported module M for the
purposes of determining what's in scope. Everything not exported by M is
out of scope, and in order to be completely unambiguous about which names
are meant, GHCi gives the fully-qualified name including the package.
The package prefixes are a bit unfortunate because they aren't valid
syntax for one thing. OTOH, there might be no way to refer to the
identifier in question at all using just a module qualifier.
I don't really know how to improve this easily. Are you worried about
consuming the output of :browse by a tool, or just using it interactively?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2344#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list