#1799: Retain export-list order in ModIface, use it in :browse
---------------------+------------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: low | Milestone: 6.10 branch
Component: GHCi | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
---------------------+------------------------------------------------------
Changes (by simonmar):
* priority: normal => low
* summary: ghci ':browse *<module>' does not list items in source order
=> Retain export-list order in ModIface, use it
in :browse
* milestone: => 6.10 branch
Comment:
In the patch for #1617, I implemented the following:
* if a module is interpreted, then browse output is in source order
* otherwise, browse output is alphabetically sorted by name
Ideally I'd like to retain the order of the export list in the `ModIface`,
so that all `:browse M` output (as opposed to `:browse *M`) would appear
in export-list order. The compiled/interpreted distinction would then
disappear. At the moment it appears that `md_exports` in `ModDetails` is
always sorted by `OccName`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1799#comment:3>
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