<A target="_top" HREF="manual_contents.html"><img align=center src="contents.gif" ALT="Contents"></A> Up Previous Next

Display information about names :info [<name> ...]


The :info command is useful for obtaining information about the files, classes, types and values that are currently loaded.

If there are no arguments, then :info prints a list of all the files that are currently loaded into the interpreter.

 Prelude> :info
 Hugs session for:
 /Hugs/lib/Prelude.hs
 Demo.hs
 Prelude> 
If there are arguments, then Hugs treats each one as a name, and displays information about any corresponding type constructor, class, or function. The following examples show the the kind of output that you can expect: As the last example shows, the :info command can take several arguments and prints out information about each in turn. A warning message is displayed if there are no known references to an argument:
 Prelude> :info (:)
 Unknown reference `(:)'
 Prelude>
This illustrates that the arguments are treated as textual names for operators, not syntactic expressions (for example, identifiers). The type of the (:) operator can be obtained using the command :info : as above. There is no provision for including wildcard characters of any form in the arguments of :info commands.

If a particular argument can be interpreted as, for example, both a constructor function, and a type constructor, depending on context, then the output for both possibilities will be displayed.