Re: Feature, implement :main command

Neil Mitchell <[email protected]> Tue, 10 Jan 2006 23:58:14 +0000
Newsgroups gmane.comp.lang.haskell.cvs.hugs
Message-ID <[email protected]>
> Might as put :main in, as long as :m still abbreviates :module.
Committed, :m is still module.

> Don't forget to update the User's Guide too.
Attached is a patch which updates the user guide. I couldn't get the
user guide to build at all (docbook seems way to complicated for me),
so I can't test that this doesn't break the userguide. I'm also not
familiar with the docbook conventions/commands so I would appreciate
someone checking that this is correct.

Thanks

Neil

_______________________________________________
Cvs-hugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-hugs
main_documentation.patch (application/octet-stream, 884 B)
Index: docs/users_guide/using_hugs.xml
===================================================================
RCS file: /home/cvs/root/hugs98/docs/users_guide/using_hugs.xml,v
retrieving revision 1.12
diff -u -r1.12 using_hugs.xml
--- docs/users_guide/using_hugs.xml	31 Aug 2005 13:59:51 -0000	1.12
+++ docs/users_guide/using_hugs.xml	10 Jan 2006 23:51:22 -0000
@@ -172,6 +172,22 @@
 </listitem>
 </varlistentry>
 
+<varlistentry id="main-command">
+<term>
+<cmdsynopsis>
+<command>:main</command> <arg rep="repeat"><replaceable>argument</replaceable></arg>
+</cmdsynopsis>
+</term>
+
+<listitem>
+<para>
+Run the <literal>main</literal> function, with the <literal>getArgs</literal> function
+returning the values specified for the arguments.
+This command is useful for testing console based programs from Hugs.
+</para>
+</listitem>
+</varlistentry>
+
 </variablelist>
 </sect1>