[cvs-nhc98] Changes to the hat-observe :info command.
Malcolm Wallace
malcolm@sparud.net
Thu, 17 Oct 2002 12:37:28 +0200 (CEST)
malcolm: Thu Oct 17 12:37:28 CEST 2002
Update of /usr/src/master/nhc/src/hat/tools
In directory hinken:/tmp/cvs-serv5963
Added Files:
Ident.hs
Log Message:
Changes to the hat-observe :info command.
Previously, all of :info was implemented in C. Now, only the search of
the file for identifiers/counts is in C. All the identifier information
is transferred to Haskell as a symbol table, and Haskell sorts it for
presentation to the user.
For the moment, we just sort identifiers by module, then
alphabetically. However, the possibility is now open for many
different kinds of info display, e.g. sorted by count, one module only,
more detailed info about a particular identifier, separate info for
constructors, locals etc. We also now have the opportunity to use
qualified identifiers in patterns, to resolve fixity/precedence in
patterns, etc.