Olaf Chitil <[EMAIL PROTECTED]> writes:

> Concerning Hugs 1.4 (January 1998 release)
> 
> The examples of the cgi library are written in literate style. However, the
> January release of runhugs expects its input in non-literate style.

Yoiks!  You need to add the flag +l to the end of the shebangs:

eg

#! /home/reid/bin/runhugs +l

\begin{code}
module Main (main) where
import "Greetings.hs"
import "Wrapper.hs"
main = wrapper hello
\end{code}

The +l flag tells Hugs/runHugs that files with no .hs or .lhs extension
are literate files.

Alternatively, leave the +l off and delete the begin/end code lines.

> Why is this library in the directory demos and not in lib (or lib/cgi)?
> It may not yet be of `industrial strength', but it is rather useful.

Code goes in the lib directory if it's being maintained and is at
 least mildly stable.  It goes in the demo directory if it's a cool
 example of what Hugs can do or a demo of how you might do something
 with Hugs.

We reckoned the cgi stuff was in the latter category and were reluctant
to add to the list of code we felt responsible for.

Alastair


Reply via email to