<indexterm><primary>CTAGS for Haskell</primary></indexterm>
-
+
<para><command>hasktags</command> is a very simple Haskell program that produces ctags "tags" and etags "TAGS" files for Haskell programs.</para>
<para><command>hasktags</command> is a very simple Haskell program that produces ctags "tags" and etags "TAGS" files for Haskell programs.</para>
-
+
<para>When loaded into an editor such an NEdit, Vim, or Emacs, this allows one to easily navigate around a multi-file program, finding definitions of functions, types, and constructors.</para>
<para>When loaded into an editor such an NEdit, Vim, or Emacs, this allows one to easily navigate around a multi-file program, finding definitions of functions, types, and constructors.</para>
-
+
<para>Invocation Syntax:</para>
<para>Invocation Syntax:</para>
-
+
<screen>
<screen>
-hasktags files
+hasktags files
</screen>
<para>This will read all the files listed in <option>files</option> and produce a ctags "tags" file and an etags "TAGS" file in the current directory.</para>
</screen>
<para>This will read all the files listed in <option>files</option> and produce a ctags "tags" file and an etags "TAGS" file in the current directory.</para>
-
+
<para>Example usage</para>
<para>Example usage</para>
-
+
<screen>
find -name \*.\*hs | xargs hasktags
</screen>
<para>This will find all haskell source files in the current directory and below, and create tags files indexing them in the current directory.</para>
<screen>
find -name \*.\*hs | xargs hasktags
</screen>
<para>This will find all haskell source files in the current directory and below, and create tags files indexing them in the current directory.</para>
-
+
<para><command>hasktags</command> is a simple program that uses simple
<para><command>hasktags</command> is a simple program that uses simple
- parsing rules to find definitions of functions, constructors, and types. It isn't guranteed to find everything, and will sometimes create false index entries, but it usually gets the job done fairly well. In particular, at present, functions are only indexed if a type signature is given for them.</para>
-
+ parsing rules to find definitions of functions, constructors, and types. It isn't guranteed to find everything, and will sometimes create false index entries, but it usually gets the job done fairly well. In particular, at present, functions are only indexed if a type signature is given for them.</para>
+
<para>Before hasktags, there used to be <command>fptags</command> and <command>hstags</command>, which did essentially the same job, however neither of these seem to be maintained any more.</para>
<sect2>
<para>Before hasktags, there used to be <command>fptags</command> and <command>hstags</command>, which did essentially the same job, however neither of these seem to be maintained any more.</para>